gform_confirmation_actions
The Gravity Forms gform confirmation actions hook.
Description
Parameters (1)
- 0. $array — Optional. (callback) =>
array( 'edit' => '' . __( 'Edit', 'gravityforms' ) . '', 'duplicate' => '' . __( 'Duplicate', 'gravityforms' ) . '', 'delete' => '' . __( 'Delete', 'gravityforms' ) . '' )
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'gform_confirmation_actions', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the gform_confirmation_actions callback
- function filter_gform_confirmation_actions( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'gform_confirmation_actions', 'filter_gform_confirmation_actions', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'gform_confirmation_actions', 'filter_gform_confirmation_actions', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /form_settings.php
- $actions = apply_filters(