gform_web_api_capability_delete_forms

Description

Filters the capability required to delete forms via the web API.

Usage

add_filter( 'gform_web_api_capability_delete_forms', function ( $capability ) { return 'my_custom_capability'; } );

Parameters

  • $capability string
    The capability required. Defaults to ‘gravityforms_delete_forms’.

Example

add_filter( 'gform_web_api_capability_delete_forms', function ( $capability ) { return 'my_custom_capability'; } );

Source Code

This action hook is located in webapi.php