WordPress.org

Forums

Show different content for user level (1 post)

  1. aled2305
    Member
    Posted 1 year ago #

    Okay so I have

    <div class="level">
        <?php global $user_ID; if( $user_ID ) : ?>
    <?php if( current_user_can('level_10') ) : ?>
    
    <a href="http://techyoucation.com/wp-admin/">Admin</a>
    
    <?php else : ?>
    
    FREE
    
    <?php endif; ?>
    <?php endif; ?>
        </div>

    which shows different content for users with Level 10 and any other. How can I edit the code to show different content to users with level 10, then different for level 9 and 8 and so on...

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags