WordPress.org

Ready to get started?Download WordPress

Forums

Menu Item Visibility Control
Hiding menu item from logged out users and guests (7 posts)

  1. mjunker
    Member
    Posted 11 months ago #

    what is the code to hide menu items for users and guests that are not loggin

    http://wordpress.org/plugins/menu-items-visibility-control/

  2. akmiecik
    Member
    Posted 10 months ago #

    This is kind of critical if one wants to hide a logout menu item (which I'm tying to do)

  3. akmiecik
    Member
    Posted 10 months ago #

    mjunker, I came across the PHP Logical Operators: http://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

  4. migueldelacueva
    Member
    Posted 7 months ago #

    I have the same question too...

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

  5. esmi
    Forum Moderator
    Posted 7 months ago #

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

  6. akmiecik
    Member
    Posted 7 months ago #

    Hey migueldelacueva,

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

  7. srapsware
    Member
    Posted 2 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.