CYBER MONDAY - 30% OFF Use coupon CM30 at checkout - Learn more

wsf_debug_enabled

Description

The wsf_debug_enabled filter allows you to override whether the debug console is shown on the client-side of your website for forms.

Usage

add_filter( 'wsf_debug_enabled', 'my_hook_function', 10, 1 );

Parameters

  1. $debug_enabled Boolean
    Set to true to enable the debug console or false to disable it.
    Default value: Per global setting

Example

// Callback function for the wsf_debug_enabled filter hook
function my_hook_function( $debug_enabled ) {
	
	// Your code here ...

	// Return value
	return false;
}

// Add a callback function for the wsf_debug_enabled filter hook
add_filter( 'wsf_debug_enabled', 'my_hook_function', 10, 1 );

Source File

This hook can be found in: <plugin root>/includes/class-ws-form-common.php