wp_editor_expand

wp_editor_expand

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_editor_expand') is found 1 times:

  • /wp-admin/edit-form-advanced.php line 60
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
         *
         * @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' ) );
        }
    }