---
title: Filter automatic recipe schema
url: "https://www.seopress.org/support/hooks/filter-automatic-recipe-schema/"
lang: en-US
updated: 2024-12-20
hook_name: seopress_schemas_auto_recipe_json, seopress_schemas_auto_recipe_html
required_version: 4.7, 3.5
---

# Filter automatic recipe schema

- **Hook name:** `seopress_schemas_auto_recipe_json, seopress_schemas_auto_recipe_html`
- **Required version:** 4.7, 3.5

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

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

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



