Skip to main content

gf_has_action()

function gf_has_action( $action, $function_to_check=false )

Determines if a callback has been registered for the specified action.

Since: 2.4.18

Source: gravityforms.php:7527

Parameters​

NameTypeDefaultDescription
$actionarrayAn array containing the action tag and modifiers.
$function_to_checkbool | callablefalseThe optional callback to check for.

Returns​

  • bool