Skip to main content

gf_do_action()

function gf_do_action( $action )

Gravity Forms pre-processing for do_action.

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

Since:

  • 1.9.12
  • 1.9.15 (Modifiers should no longer be passed as a separate parameter.)
  • 3.0.2 (Updated to catch and log throwable errors.)

Source: gravityforms.php:7435

Parameters

NameTypeDefaultDescription
$actionstring | arrayThe action.

Throws

  • Throwable