Title: wp_editor_settings
Published: September 4, 2014
Last modified: August 20, 2026

---

# apply_filters( ‘wp_editor_settings’, array $settings, string $editor_id )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#wp--skip-link--target)

Filters the [wp_editor()](https://developer.wordpress.org/reference/functions/wp_editor/)
settings.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#see-also)󠁿

 * [_WP_Editors::parse_settings()](https://developer.wordpress.org/reference/classes/_WP_Editors/parse_settings/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#parameters)󠁿

 `$settings`array

Array of editor arguments.

`$editor_id`string

Unique editor identifier, e.g. `'content'`. Accepts `'classic-block'` when called
from block editor’s Classic block.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#source)󠁿

    ```php
    $settings = apply_filters( 'wp_editor_settings', $settings, $editor_id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-editor.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/class-wp-editor.php#L83)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-editor.php#L83-L83)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_tinymce_inline_scripts()](https://developer.wordpress.org/reference/functions/wp_tinymce_inline_scripts/)`wp-includes/script-loader.php` |

Adds inline scripts required for the TinyMCE in the block editor.

  | 
| [_WP_Editors::parse_settings()](https://developer.wordpress.org/reference/classes/_wp_editors/parse_settings/)`wp-includes/class-wp-editor.php` |

Parse default arguments for the editor instance.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_editor_settings/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.0.0](https://developer.wordpress.org/reference/since/4.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_editor_settings%2F)
before being able to contribute a note or feedback.