Description
The “gform_post_form_activated” action in Gravity Forms is triggered after an inactive form is marked as active, allowing further actions to be performed.
Usage
add_action( 'gform_post_form_activated', 'my_function', 10, 2 );
Parameters
- $form_id int
The ID of the form that is being marked as active.
Examples
add_action( 'gform_post_form_activated', 'my_post_form_activated_func', 10); function my_post_form_activated_func( $form_id ) { // perform action after a form has been activated }
Source Code
This action hook is located in forms_model.php.