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.
Contents
Parameters
- $expand
(bool)Whether to enable the 'expand' functionality. Default true.
- $post_type
(string)Post type.
Source
Changelog
Version | Description |
---|---|
4.1.0 | Added the $post_type parameter. |
4.0.0 | Introduced. |