---
title: Filtrer le schéma MerchantReturnPolicy
url: "https://www.seopress.org/fr/support/hooks/filtrer-le-schema-merchantreturnpolicy/"
lang: fr-FR
updated: 2026-10-21
hook_name: seopress_pro_merchant_return_policy
required_version: 10.0
---

# Filtrer le schéma MerchantReturnPolicy

- **Hook name:** `seopress_pro_merchant_return_policy`
- **Required version:** 10.0

```php
<?php
/**
 * Filter the MerchantReturnPolicy schema built from the WooCommerce return policy settings.
 *
 * @param array $policy  The policy schema (@type, applicableCountry, returnPolicyCategory...).
 * @param array $options The seopress_pro_option_name option.
 *
 * @return array
 */
function sp_merchant_return_policy( $policy, $options ) {
	$policy['url'] = home_url( '/returns/' );

	return $policy;
}
add_filter( 'seopress_pro_merchant_return_policy', 'sp_merchant_return_policy', 10, 2 );
```

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



