gform_zapier_actions

gform_zapier_actions

DescriptionUsageParametersExamplesPlacementSource Code

Description
The 「gform_zapier_actions」 filter allows the modification of the feed actions allowed (delete and edit).
Usage
1add_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
12345678add_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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註