search ]

Set Default Post Editor Mode in WordPress

Some prefer to work with the visual editor when writing posts and others prefer the text editor. Change the default post editor by adding the following lines to your functions.php file:

# Visual Editor as default
add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );

# HTML Editor as default
add_filter( 'wp_default_editor', create_function('', 'return "html";') );

For more editor configuration, see Enable Gutenberg for Custom Post Types.

Join the Discussion
0 Comments  ]

Leave a Comment

To add code, use the buttons below. For instance, click the PHP button to insert PHP code within the shortcode. If you notice any typos, please let us know!

Savvy WordPress Development official logo