Viewing 6 replies - 1 through 6 (of 6 total)
  • This is kind of critical if one wants to hide a logout menu item (which I’m tying to do)

    mjunker, I came across the PHP Logical Operators: https://www.php.net/manual/en/language.operators.logical.php

    ! is_user_logged_in() = user NOT logged in
    is_user_logged_in() = user IS logged in

    I have the same question too…

    The parameters above currently are not working in order to hide the menu.

    @migueldelacueva: If you require assistance then, as per the Forum Welcome, please post your own topic.

    Hey migueldelacueva,

    Send specifics. What are you trying to hide from whom (or is it who, whom cares!).

    Using the built in WordPress navigation menus is the most convenient way to handle custom menus since the 3.0 release. Since then, developers have written all kinds of plugins to add additional functionality to this theme feature.
    If Menu is the latest plugin written to extend WordPress navigation menus. It allows you to show or hide individual menu items based on conditional statements, such as whether or not a user is logged in, various user roles, and the type of content being viewed, (ie, front page, single, page).
    When the plugin is enabled, each menu item will get a new checkbox option to “Enable Conditional Logic”.

    The plugin currently includes several conditional statements and the developer will be adding more in future releases. You can also add your own by following the instructions on the FAQ page.
    If you need to apply conditional logic to individual menu items within the native WordPress navigation menus, this plugin offers you the easiest way to do that. Download the If Menu plugin for free from the WordPress plugin repository.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hiding menu item from logged out users and guests’ is closed to new replies.