Last active
December 19, 2015 16:19
-
-
Save jgalea/5982726 to your computer and use it in GitHub Desktop.
Revisions
-
jgalea revised this gist
Jul 12, 2013 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,6 @@ function add_capability() { $role = get_role( 'author' ); // This only works, because it accesses the class instance. $role->add_cap( 'edit_others_posts' ); } add_action( 'admin_init', 'add_capability'); -
jgalea created this gist
Jul 12, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <?php function add_capability() { // gets the author role $role = get_role( 'author' ); // This only works, because it accesses the class instance. // would allow the author to edit others' posts for current theme only $role->add_cap( 'edit_others_posts' ); } add_action( 'admin_init', 'add_capability');