gravityflow_entry_url_status_table

Description

The gravityflow_entry_url_status_table filter allows the entry url to be filtered in the status table.

Parameters

ParameterTypeDetails
$entry_urlStringThe url to be linked to
$form_idIntegerThe current form ID
$entry_idIntegerThe current entry ID.
$entryEntryThe current entry array.

Examples

Make a status view summary display only on a certain page

1
2
3
4
5
6
7
8
9
add_action( 'gravityflow_entry_url_status_table', 'jo_status_entry_url_blank', 10, 4 );
function jo_status_entry_url_blank( $entry_url, $form_id, $entry_id, $entry ) {
    //Adjust to ensure it only matches on page(s) with the shortcode you desire.
     if ( ! get_the_ID() == '285' ) {
        return $entry_url;
    } else {
        return '#';
    
}

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?