gform_advancedpostcreation_args_pre_get_custom_post_types

Description

Enables the arguments used to get the custom post types to be overridden.

Usage

add_filter( 'gform_advancedpostcreation_args_pre_get_custom_post_types', 'your_function_name', 10, 1 );

Parameters

Examples

add_filter( 'gform_advancedpostcreation_args_pre_get_custom_post_types', 'set_args', 10, 1 );
function set_args( $args ){
	$args['public'] = false;
	return $args;
}

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in Gravity Forms Advanced Post Creation version 1.0-beta-2.4.

Source Code

This filter is located in GF_Advanced_Post_Creation::get_post_types_as_choices() in gravityformsadvancedpostcreation/class-gf-advancedpostcreation.php.