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
| Name | Type | Description |
|---|---|---|
| $ability_name | string | The registered ability name. |
| $input | array | The input passed to the ability. |
| $ability_object | \GF_Ability | The 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