WP no longer uses role names in this type of function. You need to use
if(current_user_can($capability)) {
where $capability
is a capability like read_posts
, publish_posts
, etc. and not the name of a role like subscriber
or editor
.
WP no longer uses role names in this type of function. You need to use
if(current_user_can($capability)) {
where $capability
is a capability like read_posts
, publish_posts
, etc. and not the name of a role like subscriber
or editor
.