Created
April 28, 2020 13:57
-
-
Save renventura/91af9c7b8996184ded87146e9ba36d35 to your computer and use it in GitHub Desktop.
Registers a custom capability in Members.
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( 'members_register_caps', 'cp_members_register_caps' ); | |
/** | |
* Register a custom capability in Members. | |
* | |
* @return void | |
*/ | |
function cp_members_register_caps() { | |
members_register_cap( 'capability_key', array( 'label' => 'Capability Label' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment