Last active
January 31, 2020 10:47
-
-
Save jgalea/5982522 to your computer and use it in GitHub Desktop.
Revisions
-
jgalea revised this gist
Jul 12, 2013 . 1 changed file with 2 additions and 11 deletions.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 @@ -1,15 +1,6 @@ <?php $result = add_role( 'advanced_contributor', 'Advanced Contributor', array( 'read' => true, // True allows that capability 'edit_posts' => true, 'delete_posts' => false, // Use false to explicitly deny )); -
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,15 @@ <?php $result = add_role( 'basic_contributor', 'Basic Contributor', array( 'read' => true, // True allows that capability 'edit_posts' => true, 'delete_posts' => false, // Use false to explicitly deny )); if (null !== $result) { echo 'Yay! New role created!'; } else { echo 'Oh... the basic_contributor role already exists.'; }