Note: This filter is included in GP Premium.
The generate_hooks_capability
filter allows you to specify user access to the Hooks add-on.
For example, if you only want the network admin to have access:
add_filter( 'generate_hooks_capability','tu_network_admin_hooks' ); function tu_network_admin_hooks() { return 'manage_network'; }
Usage
Please refer to the Using Filters article to learn how to use this filter.