gform_is_entry_detail_view

Description

Allows the “entry_detail” page to be marked as a regular page, not an admin or edit page, or a regular page to be marked as an Entry Detail page. This filter is useful if you are creating custom entry edit pages.

Usage

add_filter( 'gform_is_entry_detail_view', 'your_function_name', 10, 1 );

Parameters

  • $is_entry_detail_view bool

    Whether the current page is the Entry Detail (entry_detail) page.

Example

add_filter( 'gform_is_entry_detail_view', 'set_entry_edit', 10, 1 );
function set_entry_edit( $is_entry_detail_view ){
    return false;
}

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in Gravity Forms version 1.9.9.

Source Code

This filter is located in GFCommon::is_entry_detail_view() in common.php.