---
title: Filtrer les instructions personnalisées envoyées à l’IA
url: "https://www.seopress.org/fr/support/hooks/filtrer-les-instructions-personnalisees-envoyees-a-lia/"
lang: fr-FR
updated: 2026-10-21
hook_name: seopress_ai_{provider}_custom_instructions
required_version: 10.1
---

# Filtrer les instructions personnalisées envoyées à l’IA

- **Hook name:** `seopress_ai_{provider}_custom_instructions`
- **Required version:** 10.1

```php
<?php
// Replace {provider} in the hook name, e.g. seopress_ai_openai_custom_instructions.
function sp_ai_custom_instructions( $instructions, $post_id ) {
	// $instructions: the site-wide custom instructions from the settings.
	// $post_id: 0 for taxonomy terms.
	return $instructions . ' Always write in a friendly tone.';
}
add_filter( 'seopress_ai_openai_custom_instructions', 'sp_ai_custom_instructions', 10, 2 );
```

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


Remplacez `{provider}` par : seopress, openai, deepseek, gemini, mistral, claude.
