---
title: Filtrar las instrucciones personalizadas enviadas a la IA
url: "https://www.seopress.org/es/soporte/hooks/filtrar-las-instrucciones-personalizadas-enviadas-a-la-ia/"
lang: es
updated: 2026-10-21
hook_name: seopress_ai_{provider}_custom_instructions
required_version: 10.1
---

# Filtrar las instrucciones personalizadas enviadas a la 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)


Sustituye `{provider}` por: seopress, openai, deepseek, gemini, mistral, claude.
