acf/schema/debug filter-hookACF 6.8.0

Filters whether to output debug comments in HTML

Usage

add_filter( 'acf/schema/debug', 'wp_kama_acf_schema_debug_filter' );

/**
 * Function for `acf/schema/debug` filter-hook.
 * 
 * @param bool $debug Whether to output debug comments.
 *
 * @return bool
 */
function wp_kama_acf_schema_debug_filter( $debug ){
	// filter...
	return $debug;
}
$debug(true|false)
Whether to output debug comments.
Default: false

Changelog

Since 6.8.0 Introduced.

Where the hook is called

Blocks::output_block_jsonld_data()
acf/schema/debug
Posts::output_jsonld_data()
acf/schema/debug
acf/src/Pro/AI/GEO/Outputs/Blocks.php 134
$debug = apply_filters( 'acf/schema/debug', false );
acf/src/AI/GEO/Outputs/Posts.php 56
$debug = apply_filters( 'acf/schema/debug', false );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.