User access in PHP templates
-
Hi,
I’m trying to use the Restric User Access plugin to restrict some content in my php templates.
With regular user roles I use:
<?php //LIMIT ACCESS
if ( (is_user_logged_in() && current_user_can( ‘contributor’ )) || (is_user_logged_in() && current_user_can( ‘administrator’ )) ){ ?>
<?php endif; ?>How can I use a similar way to filter user.
Basically I’d like to be able to hide some content (a button). How can I get the current user access level?
Thank you very much in advance,
Best
Yannick
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘User access in PHP templates’ is closed to new replies.