Description
The โgform_zapier_actionsโ filter allows the modification of the feed actions allowed (delete and edit).
Usage
1 | add_filter( 'gform_zapier_actions' , 'your_function_name' , 10, 1 ); |
Parameters
- $actions array
An array for the Edit and Delete actions for a Zapier Feed (includes all the HTML for each action link).
Examples
1 2 3 4 5 6 7 8 | add_filter( 'gform_zapier_actions' , 'change_actions' , 10, 1 ); function change_actions( $actions ){ $delete = $actions [ 'delete' ]; $delete = str_replace ( 'Delete this item' , 'Delete Feed' , $delete ); $delete = str_replace ( '>Delete' , '>Delete Feed' , $delete ); $actions [ 'delete' ] = $delete ; return $actions ; } |
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFZapierTable::column_name() in zapier.php.