Plugin: Builder Template Categories - Code Snippet for filtering the capability for the plugin:
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 | |
/** 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