Last active
January 31, 2020 10:47
-
-
Save jgalea/5982522 to your computer and use it in GitHub Desktop.
Creating a custom role in WordPress
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 characters
<?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 | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment