Created
October 11, 2016 04:26
-
-
Save muhfaris/e6f3dc70beff82d5d3ced641525dc503 to your computer and use it in GitHub Desktop.
Rules User add Function
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
// Add a custom user role | |
$result = add_role( 'Contributor', __( | |
'Contributor' ), | |
array( | |
'publish_posts' => false, // Allows the user to publish, otherwise posts stays in draft mode | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment