Description
Allows to edit the list of action links in the first column of the entries page.
Usage
Applies to all forms:
add_filter( 'gform_entries_action_links', 'your_function_name', 10, 4 );
Parameters
- $actions array
An array of action links is displayed for each entry in the entry list. - $filter string
The filter name. - $entry Entry Object
The entry object data for the specific form entry is being processed. - $form_id int
The ID of the current form.
Examples
Inserting insert_entry_action_link function
The following examples allow adding the insert_entry_action_link
function in class-gf-moderation.php
add_filter( 'gform_entries_action_links', 'prepend_entry_action_link', 10, 4 );
function append_entry_action_link( $actions, $filter, $entry, $form_id ) {
$new_action = array(
'appended_item' => array(
'class' => 'class-to-use-in-wrapper',
'link' => '<a href="https://gravityforms.com">Gravity Forms Website</a>',
),
);
return array_merge( $actions, $new_action );
}
function prepend_entry_action_link( $actions, $filter, $entry, $form_id ) {
$new_action = array(
'prepanded_item' => array(
'class' => 'class-to-use-in-wrapper',
'link' => '<span>Hello</span>',
),
);
return array_merge( $new_action, $actions );
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This filter is located in /entry_list.php
Since
The filter was added in Gravity Forms 2.9