• I’m currently using a code that goes like this…

    <?php
    global $user_login;
    get_currentuserinfo();
    if ($user_login && current_user_can('manage_options')){
    ?>
    (Insert whatever here)
    <?php } ?>

    to hide a widget from public view/use. I currently use “manage options” as the qualifier on whether or not the user can see the widget, is there a way I can use whether or not the user has access to a certain page? I’m hoping to use this in conjunction with Wishlist Member plugin that I use that allows me to restrict certain pages for users.

  • The topic ‘Quick php-based question…’ is closed to new replies.