Filters the complete FAQPage schema.org data before being output as JSON.
Data is arranged in the following way:
$schema = [ '@context' => 'https://schema.org', '@type' => 'FAQPage', 'mainEntity' => [ [ '@type' => 'Question', 'name' => 'My question 1 ?', 'acceptedAnswer' => [ '@type' => 'Answer', 'text' => 'Answer contents 1...', ], ], [ '@type' => 'Question', 'name' => 'My question 2 ?', 'acceptedAnswer' => [ '@type' => 'Answer', 'text' => 'Answer contents 2...', ], ], ], ];
Usage example :
add_filter( 'joli_faq_seo_schema', function($schema){ //Filter $schema here return $schema; });