gform_web_api_capability_post_entries

gform_web_api_capability_post_entries

DescriptionUsageParametersExampleSource Code

Description
Filters the capability required to create entries via the web API.
Usage
1add_filter( 'gform_web_api_capability_post_entries', function ( $capability ) { return 'my_custom_capability'; } );

Parameters

$capability string
The capability required. Defaults to 『gravityforms_edit_entries』.

Example
1add_filter( 'gform_web_api_capability_post_entries', function ( $capability ) { return 'my_custom_capability'; } );
Source Code
This action hook is located in webapi.php

发表回复

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