wpwhpro/admin/settings/webhook/page_capability
Description:
This filter allows you to control the permission for users to do certain interactions on an admin tab based on the given capability. You can, for example, permit a user to access the site, but without the permission to send demo requests or add webhooks.
Parameter | Type | Description |
---|---|---|
WPWHPRO()->settings->get_admin_cap( ‘wpwhpro-page-settings-recieve-data-webhook’ ) | string | The main admin capability. |
$webhook | string | The current webhook slug. |
/** * Filter the admin page content actions and permit user based on special capabilities */ apply_filters( 'wpwhpro/admin/settings/webhook/page_capability', WPWHPRO()->settings->get_admin_cap( 'wpwhpro-page-settings-recieve-data-webhook' ), $webhook )