Description
Allows the Entry Edit or Entry Detail Edit pages 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', 'your_function_name', 10, 1 );
Parameters
- $is_entry_detail bool
Whether the current page is the Entry Detail Edit (entry_detail_edit) page or the Entry Edit (entry_detail) page.
Example
add_filter( 'gform_is_entry_detail', 'set_entry_edit', 10, 1 ); function set_entry_edit( $is_entry_detail ){ 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() in common.php.