Description
The filter allows disabling the DOM parser. It is useful for environments where performance is a priority and the DOM parser is unnecessary. Using this filter is only recommended for advanced users who understand the implications of disabling the DOM parser.
Usage
Applies to all forms:
add_filter( 'gform_disable_dom_parser', 'your_function_name' );
Parameters
Defaults to false. Set to true using the WordPress __return_true function or a custom function that returns true.
Examples
Disable DOM Parser
add_filter( 'gform_disable_dom_parser', '__return_true' );
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?
Source Code
This filter is located in includes/libraries/class-dom-parser.php
Since
The filter was added in Gravity Forms 2.9.1