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

# Filtrer le schéma manuel événement

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

```php
function sp_pro_get_json_data_event($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_pro_get_json_data_event','sp_pro_get_json_data_event', 10, 2);
```

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



