wp_editor_expand WordPress Filter Hook

The wp_editor_expand hook is used to modify the behavior of the Wordpress editor when it is expanded. This hook is useful for plugin developers who need to customize the editor's behavior.

apply_filters( 'wp_editor_expand', bool $expand, string $post_type ) #

Filters whether to enable the ‘expand’ functionality in the post editor.


Parameters

$expand

(bool)Whether to enable the 'expand' functionality. Default true.

$post_type

(string)Post type.


Top ↑

Source

File: wp-admin/edit-form-advanced.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.1.0Added the $post_type parameter.
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.