WordPress.org

Ready to get started?Download WordPress

Forums

Button only visible to registered user (2 posts)

  1. produitsmama
    Member
    Posted 2 years ago #

    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

    )

  2. Aaron
    Member
    Posted 2 years ago #

    Can use something like

    <?php
    if ( is_user_logged_in() ) {
        echo 'Show the button';
    } else {
        echo 'Dont show the button';
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic