Skip to content

Instantly share code, notes, and snippets.

@ingozoell
Created July 5, 2017 08:36
Show Gist options
  • Save ingozoell/28852f6fcb69cd4a5425f365fc3f5ff1 to your computer and use it in GitHub Desktop.
Save ingozoell/28852f6fcb69cd4a5425f365fc3f5ff1 to your computer and use it in GitHub Desktop.
function add_theme_caps() {
$role = get_role( 'author' );
$role->add_cap( 'edit_others_posts' );
}
add_action( 'admin_init', 'add_theme_caps');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment