gf_do_action()

gf_do_action()

DescriptionUsageParametersExamplesSinceSource Code

Description

Gravity Forms pre-processing for do_action.

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

Usage

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

Parameters

$action arrayArray containing the action hook as well as the modifier.

Examples

1gf_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

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注