Support » Fixing WordPress » Button only visible to registered user

  • produitsmama

    (@produitsmama)


    Hi

    I want to get a plugin that could do the following:

    If someone is not registered it can only see on the nav bar (HOME, CONTACT, PRODUCT). but if the user log in (after registering), more options will become visible.

    I’ve tried User Access Manager and Acces Manager. Both are great at preventing someone to acces the specifig page but seems to fail at hiding the link on the nav bar.

    I would also like if that is possible to have multiple “Rank” of registered user. (like mr.everybody, commercial client, staff, bosses acces

    )

Viewing 1 replies (of 1 total)
  • PSD Bum

    (@wpbum)

    Can use something like

    <?php
    if ( is_user_logged_in() ) {
        echo 'Show the button';
    } else {
        echo 'Dont show the button';
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Button only visible to registered user’ is closed to new replies.