gform_advancedpostcreation_excerpt

gform_advancedpostcreation_excerpt

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description
Controls whether the post excerpt field is available in the feed settings.
Usage
1add_filter( 'gform_advancedpostcreation_excerpt', 'your_function_name', 10, 1 );

Parameters

$enable_excerpt bool
Controls whether the Post Excerpt setting is available. The default is false.

Examples
1234add_filter( 'gform_advancedpostcreation_excerpt', 'enable_excerpt', 10, 1 );function enable_excerpt( $enable_excerpt ){    return true;}
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in the Gravity Forms Advanced Post Creation add-on version 1.0.
Source Code
This filter is located in GF_Advanced_Post_Creation::feed_settings_fields_create_post() in gf-class-advancedpostcreation.php.

发表回复

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