Gform entries first column actions

Description

Use this action hook to add extra action links to the entry row on the entry list page.

Usage

<?php
add_action("gform_entries_first_column_actions", "first_column_actions", 10, 5);
?>

Parameters

$form_id
(integer) The ID of the form from which the entry value was submitted.
$field_id
(integer) The ID of the field from which the entry value was submitted.
$value
(string) The entry value of the field id for the current lead.
$lead
(Lead Object) The current lead.
$query_string
(string) The current page's Query String in the format "name1=val1&name2=val2"

Examples

This example demonstrates how to add Gravity Form's print entry functionality (currently available on the Entry Detail page) as an action link on the Entries list page. Example output: [1].

<?php
add_action('gform_entries_first_column_actions', 'first_column_actions', 10, 4);
function first_column_actions($form_id, $field_id, $value, $lead) {
    
    $lead_id = $lead['id'];
    echo "| <a onclick=\"var url='http://localhost/wp-content/plugins/gravityforms/print-entry.php?fid=$form_id&lid=$lead_id&notes=1'; window.open (url,'printwindow');\" href=\"javascript:;\">Print</a>";
    
}
?>

Source Code

This filter is located in entry_list.php

Search the Documentation