acf/schema/render_script action-hookACF 1.0

Action fired before rendering JSON-LD script tag

Allows developers to output custom schemas or capture the data.

Usage

add_action( 'acf/schema/render_script', 'wp_kama_acf_schema_render_script_action' );

/**
 * Function for `acf/schema/render_script` action-hook.
 * 
 * @param array $jsonld_data The JSON-LD data array.
 *
 * @return void
 */
function wp_kama_acf_schema_render_script_action( $jsonld_data ){
	// action...
}
$jsonld_data(array)
The JSON-LD data array.

Where the hook is called

GEO::render_jsonld_script()
acf/schema/render_script
acf/src/AI/GEO/GEO.php 329
do_action( 'acf/schema/render_script', $jsonld_data );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.