Function has_role()
-
Hi,
I am using user-specific-content version 1.0.4.
The shortcode
[O_U user_role=”subscriber” blocked_message=”The content is block.”]Some content![/O_U]
Is not working.
The return in_array($role, (array) $user->roles) of the function has_role($role, $user_id = null) is returning NULL in the file user-specific-content/User-Specific-Content.php.
The user i am testing have the “subscriber” role.
If i change the plugin User Specific Content version to 1.0.1, it’s working.
Is it possible that the new has_role (replacing bausp_get_current_user_role) function as a bug in it?
Thank you very much.
Dominic Bolduc
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Function has_role()’ is closed to new replies.