---
title: Filtrer le schéma manuel article
url: "https://www.seopress.org/fr/support/hooks/filtrer-le-schema-manuel-article/"
lang: fr-FR
updated: 2023-07-20
hook_name: seopress_pro_get_json_data_article
required_version: 4.6
---

# Filtrer le schéma manuel article

- **Hook name:** `seopress_pro_get_json_data_article`
- **Required version:** 4.6

```php
function sp_pro_get_json_data_article($jsonld, $context) {
	//$jsonld returns the schema as an array
	//$context returns the context as an array, use this to apply conditions
	
	//do your stuff
	//eg: $jsonld['description'] = '%%sitetitle%%';
	
	return $jsonld;
}
add_filter('seopress_pro_get_json_data_article','sp_pro_get_json_data_article', 10, 2);
```

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



