---
title: Filtrer le schéma automatique FAQ
url: "https://www.seopress.org/fr/support/hooks/filtrer-le-schema-automatique-faq/"
lang: fr-FR
updated: 2019-10-08
hook_name: seopress_schemas_auto_faq_json, seopress_schemas_auto_faq_html
required_version: 4.7, 3.6.2
---

# Filtrer le schéma automatique FAQ

- **Hook name:** `seopress_schemas_auto_faq_json, seopress_schemas_auto_faq_html`
- **Required version:** 4.7, 3.6.2

```php
add_filter('seopress_schemas_auto_faq_json', 'sp_schemas_auto_faq_json');
function sp_schemas_auto_faq_json($json) {
	//returns schema as an array with 'property' => 'value'
	return $json;
}

function sp_schemas_auto_faq_html($jsonld) {
	$jsonld = '<script type="application/ld+json">Full documentation here: https://schema.org/FAQPage</script>';
	return $jsonld;
}
add_filter('seopress_schemas_auto_faq_html','sp_schemas_auto_faq_html');
```

Source: [https://gist.github.com/wp-seopress/ab802d4cbca389e00f50222f57c01315](https://gist.github.com/wp-seopress/ab802d4cbca389e00f50222f57c01315)



