Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Plugin: Builder Template Categories - Code Snippet for filtering the capability for the plugin:
/** Do NOT include the opening php tag */
add_filter( 'btc/filter/capability/submenu', 'btc_custom_capability_submenu' );
* Plugin: Builder Template Categories - Custom capability.
* @author David Decker - DECKERWEB
* @link
* @return string String ID of new capability.
function btc_custom_capability_submenu() {
return 'edit_posts';
} // end function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment