wordpress snippets last updated   : April 22, 2014
we now have 631 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');

  • Abhishek

    Nice one! Thanks!

jqsnipp.com | we just launched jquery snippets website