---
title: Filtrar esquema personalizado manual
url: "https://www.seopress.org/es/soporte/hooks/filtrar-esquema-personalizado-manual/"
lang: es
updated: 2023-07-20
hook_name: "seopress_rich_snippets_custom_' . $key . '_html"
required_version: 4.6
---

# Filtrar esquema personalizado manual

- **Hook name:** `seopress_rich_snippets_custom_' . $key . '_html`
- **Required version:** 4.6

```php
function sp_rich_snippets_custom_html($jsonld, $context) {
	//$jsonld returns the schema as an array
	//$context returns the context as an array, use this to apply conditions
	
	//do your stuff
	
	return $jsonld;
}
add_filter('seopress_rich_snippets_custom_' . $key . '_html', 'sp_rich_snippets_custom_html', 10, 2);

//$key is the number of schema, 0 is the first schema of the list and so on.
```

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



