gform_advancedpostcreation_excerpt

Description

Controls whether the post excerpt field is available in the feed settings.

Usage

add_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

add_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.