Skip to main content

Action: gform_before_execute_ability

Fires before a Gravity Forms ability is executed.

This action fires only when the ability's permission check passes. It cannot block or modify execution.

Parameters

NameTypeDescription
$ability_namestringThe registered ability name.
$inputarrayThe input passed to the ability.
$ability_object\GF_AbilityThe ability instance being executed.

Example

add_action( 'gform_before_execute_ability', function( $name, $input, $ability ) {
GFCommon::log_debug( "Executing ability: {$name}" );
}, 10, 3 );

Since

  • 3.1.0

Source

Defined in includes/abilities/class-gf-ability.php at line 147