WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
[resolved] Widget Logic Based on Cookies? (3 posts)

  1. mcyger
    Member
    Posted 1 year ago #

    Hi alanft,

    Do you know if widgets can be displayed based on cookies being present?

    For example, can I set a condition like:
    !isset($_COOKIE["User"])

    So if the user is signed in then the widget does NOT display?

    Thanks for your help.

    http://wordpress.org/extend/plugins/widget-logic/

  2. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    yep of course - any PHP you like. though if it's just "not signed in" you can use !is_user_logged_in(), coincidentally one of the examples on

    http://wordpress.org/extend/plugins/widget-logic/other_notes/

  3. mcyger
    Member
    Posted 1 year ago #

    Awesome. Thanks for your quick response!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic