gform_is_form_editor

Description

Allows pages to be marked as Form Editor pages or not.

Usage

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

Parameters

  • $is_form_editor bool

    Whether the page is a form editor page or not.

Example

add_filter( 'gform_is_form_editor', 'set_editor', 10, 1 );
function set_editor( $is_form_editor ){
    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_form_editor() in common.php.