1. Home
  2. For Devs
  3. Filter
  4. Admin Page Content Actions
  1. Home
  2. Plugins
  3. WP Webhooks
  4. For Devs
  5. Filter
  6. Admin Page Content Actions

Admin Page Content Actions

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 )

Updated on August 10, 2019

Was this article helpful?

Related Articles