Last active
February 1, 2016 09:12
-
-
Save mariokerkhof/543bc000b047fb2ed878 to your computer and use it in GitHub Desktop.
Add User Role
This file contains 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 role (voer dit eenmalig uit) | |
// Voeg coordinator toe | |
$result = add_role( | |
'coordinator', | |
__( 'Coördinator' ), | |
array( | |
'read' => true, | |
'edit_posts' => true, | |
'delete_posts' => false, | |
) | |
); | |
if ( null !== $result ) { | |
echo 'Yay! New role created!'; | |
} | |
else { | |
echo 'Oh... the basic_contributor role already exists.'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment