acf/schema/render_script
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
acf/schema/render_script
acf/src/AI/GEO/GEO.php 329
do_action( 'acf/schema/render_script', $jsonld_data );