wp_editor_expand

wp_editor_expand

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_editor_expand') is found 1 times:

  • /wp-admin/edit-form-advanced.php line 60
    	 *
    	 * @param bool   $expand    Whether to enable the 'expand' functionality. Default true.
    	 * @param string $post_type Post type.
    	 */
    	if ( apply_filters( 'wp_editor_expand', true, $post_type ) ) {
    		wp_enqueue_script( 'editor-expand' );
    		$_content_editor_dfw = true;
    		$_wp_editor_expand   = ( 'on' === get_user_setting( 'editor_expand', 'on' ) );
    	}
    }