Last active
March 12, 2017 14:25
-
-
Save nickdavis/235a3a25a5df43e9829ec9bc98ad841a to your computer and use it in GitHub Desktop.
Find out the current capabilities of the contributor user role (NB. the ddd() function requires Kint to be installed)
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
<?php | |
add_action( 'init', 'check_contributor_capabilities', 0 ); | |
function check_contributor_capabilities() { | |
ddd( get_role( 'contributor' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment