wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Give author capabilities including editing other authors posts

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will allow authors to edit other users posts.

This is a list of other capabilities that can be used. Adding more than one cap just add a new line $role->add_cap( 'new_cap_name' ); Thanks to Andrea Bersi for submitting.
snippet :  PHPcopy
function add_theme_caps() {
   $role = get_role( 'author' );
   $role->add_cap( 'edit_others_posts' ); 
add_action( 'admin_init', 'add_theme_caps');

Did you like this post? If so please share it with your friends. Thanks!

  • Abhishek

    Nice one! Thanks!