Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Plugin: Builder Template Categories - Code Snippet for filtering the capability for the plugin:
<?php
/** 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 https://gist.github.com/deckerweb/89f5f8d2b8d31073401a80ef6d0f10dc
*
* @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
You can’t perform that action at this time.