apply_filters( ‘wp_editor_expand’, bool $expand, string $post_type )

In this article

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

Parameters

$expandbool
Whether to enable the 'expand' functionality. Default true.
$post_typestring
Post type.

Source

if ( apply_filters( 'wp_editor_expand', true, $post_type ) ) {

Changelog

VersionDescription
4.1.0Added the $post_type parameter.
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.