Specific Category & Capacity/Role
-
Hello, guys.
I have a problem… ??I want remove a capacity of the role = ‘author’ when he write a certain category.
In the case, i want remove the cap “publish_post” of the author in the category ‘X‘…Is possible? How?
I thought in this code.
if(in_category('X')){ $edit_au = get_role( 'author' ); $edit_au->remove_cap('publish_post'); }
But… Nothing. “/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Specific Category & Capacity/Role’ is closed to new replies.