WordPress at a glance
filter is not described

wp_editor_expand filter-hook . WP 4.0.0

Filters whether to enable the 'expand' functionality in the post editor.

Usage

add_filter( 'wp_editor_expand', 'filter_function_name_7333', 10, 2 );
function filter_function_name_7333( $expand, $post_type ){
	// filter...

	return $expand;
}
$expand(true/false)
Whether to enable the 'expand' functionality.
Default: true
$post_type(string)
Post type.

Notes

  • Since 4.1.0 Added the $post_type parameter.

Where the hook is called

In file: /wp-admin/edit-form-advanced.php
wp_editor_expand
wp-admin/edit-form-advanced.php 45
apply_filters( 'wp_editor_expand', true, $post_type ) ) {

Where the hook is used (in WP core)

Does not used.