---
title: Filter website schema
url: "https://www.seopress.org/support/hooks/filter-website-schema/"
lang: en-US
updated: 2024-07-11
hook_name: seopress_schemas_website, seopress_schemas_website_html
required_version: 6.1, 8.0
---

# Filter website schema

- **Hook name:** `seopress_schemas_website, seopress_schemas_website_html`
- **Required version:** 6.1, 8.0

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

add_filter('seopress_schemas_website_html', 'sp_schemas_website_html');
function sp_schemas_website_html($html) {
	//do your stuff here
	//var_dump($html);
	return $html;
}
```

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



