Roles & Capabilities
-
I need to create a custom role with various capabilities in WordPress. I need to edit the function.php file of my theme. This is my code:
/* Create Author Pro User Role */
add_role( ‘author_pro’, // System name of the role. __( ‘Author Pro’ ), // Display name of the role.
array( ‘read’ => true,
‘edit_posts’ => true,
‘publish_posts’ => true,
‘edit_published_posts’ => true,
‘edit_others_posts’ => true,
‘edit_pages’ => true,
‘edit_others_pages’ => true,
‘edit_private_pages’ => true,
‘edit_published_pages’ => true,
‘upload_files’ => true,
‘moderate_comments’=> true, // This user will be able to moderate the comments. ) );
Problem is, the role is not able to edit pages created by others. What am I getting wrong?
- The topic ‘Roles & Capabilities’ is closed to new replies.