acf/schema/disable_output filter-hookACF 1.0

Filter to disable ACF's default JSON-LD output

Return true to prevent ACF from outputting the JSON-LD script tag. Useful if you want to handle the output yourself via the action above.

Usage

add_filter( 'acf/schema/disable_output', 'wp_kama_acf_schema_disable_output_filter', 10, 2 );

/**
 * Function for `acf/schema/disable_output` filter-hook.
 * 
 * @param bool  $disable     Whether to disable default output.
 * @param array $jsonld_data The JSON-LD data that would be output.
 *
 * @return bool
 */
function wp_kama_acf_schema_disable_output_filter( $disable, $jsonld_data ){
	// filter...
	return $disable;
}
$disable(true|false)
Whether to disable default output.
Default: false
$jsonld_data(array)
The JSON-LD data that would be output.

Where the hook is called

GEO::render_jsonld_script()
acf/schema/disable_output
acf/src/AI/GEO/GEO.php 340
$disable_output = apply_filters( 'acf/schema/disable_output', false, $jsonld_data );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.