Viewing 7 replies - 1 through 7 (of 7 total)
  • > which is standard and in the codex.

    If you want access to all of WordPress’s conditional tags, I’d suggest looking at the Widget Logic plugin.

    I was looking for this feature too. When I install Widget Logic plugin it seems to override your plugin. haha. Any way to add a check beck for hide when logged in?

    Actually, I’m a doofus. I just had to add a few widgets in and then set your plugin to hide them everywhere. Thanks. Great plugin!

    To achieve this I use this plugin plus Restrict Widgets. It’d be great to get this feature added to Conditional Widgets so then I won’t need both plugins installed.

    The Widget Logic plugin isn’t ideal. What’d be ideal is adding this feature to Conditional Widgets.

    +1 to this feature request, it will be really great…

    And maybe something related to member roles too! ??

    > And maybe something related to member roles too! ??

    And you already start to see why this becomes a very slippery slope. ??

    More importantly, we run into issues of logic if we start including logic that spans multiple topics. Conditional Widgets currently includes logic surrounding the current screen. Adding logic about other things, such as if the user is currently logged in, leads to issues.

    For example, if you set:
    Hide on Front Page but Show if Logged In -> what do I do for a logged in user on the Front Page?
    Show on About Page but Hide if Logged In -> what do I do for a logged in user on the About Page?

    Logic for whether or not to display something gets convoluted very quickly, which is why a flexible tool like Widget Logic is great for these more advanced cases.

    I had a look at the code to see if this could be easily implemented, but it would quickly complicate the plugin. My intention was to add an option that if checked would show the widget only if current_user_can( 'edit_theme_options' ) returned true.

    But a hall pass has already been given to the Front Page logic; adding another exception for status of user makes the logic difficult to follow.

    It does seem like this is best left to another plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Suggestion: Is Logged In / Not’ is closed to new replies.