---
title: Filter automatic FAQ schema
url: "https://www.seopress.org/support/hooks/filter-automatic-faq-schema/"
lang: en-US
updated: 2021-09-29
hook_name: seopress_schemas_auto_faq_json, seopress_schemas_auto_faq_html
required_version: 4.7, 3.6.2
---

# Filter automatic FAQ schema

- **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)



