wp_editor_settings WordPress Filter Hook

The wp_editor_settings hook allows you to modify the settings for the WordPress editor. This hook is called when the editor is initialized, and allows you to modify the settings for the editor.

apply_filters( 'wp_editor_settings', array $settings, string $editor_id ) #

Filters the wp_editor() settings.


Description

Top ↑

See also


Top ↑

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.


Top ↑

Source

File: wp-includes/class-wp-editor.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.