---
title: Filtrer le schéma automatique service
url: "https://www.seopress.org/fr/support/hooks/filtrer-le-schema-automatique-service/"
lang: fr-FR
updated: 2019-07-11
hook_name: seopress_schemas_auto_service_json, seopress_schemas_auto_service_html
required_version: 4.7, 3.6
---

# Filtrer le schéma automatique service

- **Hook name:** `seopress_schemas_auto_service_json, seopress_schemas_auto_service_html`
- **Required version:** 4.7, 3.6

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

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

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



