WordPress user roles broken
-
Hello I have a website which relies on user roles such as administrator to show certain content. I have installed BBPress which seems to break my user roles for example all Administrators become Keymasters also which is fine but if I run a query such as the code below it evaluates to false.
Any help would be greatly appreciated.
<?php if (is_user_logged_in() ) { $user_ID = get_current_user_id(); $user_info = get_userdata($user_ID); if(isset($user_info->roles) && implode(', ', $user_info->roles) == 'administrator') { ?>; <?php } >;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.