bookmark_bordergform_entry_list_action
Description
The “gform_entry_list_action” action in Gravity Forms fires after the default entry list actions have been processed.
Usage
The following would apply to all forms:
add_action( 'gform_entry_list_action', 'your_function_name', 10, 3 );
To limit the scope of your function to a specific action, append the action name to the end of the hook name. (format:gform_entry_list_action_ACTION)
add_action( 'gform_entry_list_action_trash', 'your_function_name', 10, 3 );
To limit the scope of your function to a specific action and form, append the action name and form id to the end of the hook name. (format:gform_entry_list_action_ACTION_FORMID)
add_action( 'gform_entry_list_action_trash_21', 'your_function_name', 10, 3 );
Parameters
Example(s)
add_action( 'gform_entry_list_action', 'perform_actions', 10, 3 ); function perform_actions( $action, $entries, $form_id ){ if ( $action == 'trash' ){ foreach ( $entries as $entry_id ) { echo 'Trashing entry id ' . $entry_id . '<br/>'; } } }
Placement
Your code snippet should be placed in the functions.php file of your active theme.
Since
Gravity Forms Version 2.2.4
Source Code
This filter is located in the GF_Entry_List_Table::process_action() in gravityforms/entry_list.php
Last modified: April 17, 2018