gform_zapier_actions

Description

The “gform_zapier_actions” filter allows the modification of the feed actions allowed (delete and edit).

Usage

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

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.