Is there a way to determine the User role on panels.php? It seems that the function like wp_get_current_user() is not wokring on my end. For now I'm using is_admin(), here's a sample code
I'm trying to display specific panels/views for specific User Roles, which I created on activate.php using the add_role() function but the different panel is not showing also, but that's another problem.
Is there a way to determine the User role on
panels.php
? It seems that the function likewp_get_current_user()
is not wokring on my end. For now I'm usingis_admin()
, here's a sample codeI'm trying to display specific panels/views for specific User Roles, which I created on
activate.php
using theadd_role()
function but the different panel is not showing also, but that's another problem.