generate_hooks_capability

generate_hooks_capability

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.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注