Description
This filter can be used to allow custom actions to be performed after the post is updated.
Usage
The following will apply to all forms:
add_action( 'gform_advancedpostcreation_post_update_post', 'your_function_name', 10, 3 );
Parameters
- $post Post Object
The updated post. - $feed Feed Object
The current feed object. - $entry Entry Object
The current entry object.
Examples
add_action( 'gform_advancedpostcreation_post_update_post', 'after_updating_post', 10, 3 );
function after_updating_post( $post, $feed, $entry ) {
// do something
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Since
This filter was added in Gravity Forms Advanced Post Creation Add-On version 1.4.0
Source code
The filter is located in class-post-update-handler.php