DescriptionUsageParametersExamplesPlacementSinceSource Code
Description
Allow custom actions to be performed before the post is updated.
Usage
The following would apply to all forms:
add_action( 'gform_advancedpostcreation_pre_update_post', 'your_function_name', 10, 3 );
To target a specific form, append the form id to the hook name. (format: gform_advancedpostcreation_pre_update_post_FORMID):
add_action( 'gform_advancedpostcreation_pre_update_post_1', 'your_function_name', 10, 3 );
Parameters
$post array The post to be updated. Array returned is the WP get_post function.$feed Feed ObjectThe feed being processed.$entry Entry Object The entry linked to the post.
Examples
add_action( 'gform_advancedpostcreation_pre_update_post', 'pre_update_your_post', 10, 3 );
function pre_update_your_post ($post, $feed, $entry) {
// do something
}
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 add-on version 1.0
Source Code
This filter is located in GF_Advanced_Post_Creation:update() in class-post-update-handler.php