Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renventura/91af9c7b8996184ded87146e9ba36d35 to your computer and use it in GitHub Desktop.
Save renventura/91af9c7b8996184ded87146e9ba36d35 to your computer and use it in GitHub Desktop.
Registers a custom capability in Members.
<?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