gf_do_action()

Description

Gravity Forms pre-processing for do_action.

Allows additional actions based on form and field ID to be defined easily.

Usage

gf_do_action( array( 'my_action_hook', $form_id ), $arg1, $arg2 );

Parameters

  • $action array
    Array containing the action hook as well as the modifier.

Examples


gf_do_action( array( 'my_action_hook', $form_id ), $arg1, $arg2 );

Since

This function was added in Gravity Forms version 1.9.12.

Source Code

This action hook is located in gravityforms.php