Family Encyclopedia >> Electronics

How to Set HTML Editor as Default Post Editor for All WordPress Users

As experienced WordPress developers, we've guided many users through customizing the post editor. Previously, we covered disabling the Visual Editor, but that meant tweaking each user profile individually. Now, discover our proven method to set the HTML Editor as the default for every user site-wide.

WordPress starts with the Visual Editor as default—no extra code required. To prioritize the HTML Editor, simply add this snippet to your active theme's functions.php file:

add_filter( 'wp_default_editor', create_function( '', 'return "html";' ) );

This change spares users from Visual Editor prompts entirely. For role-based customizations, we recommend a robust WordPress admin plugin.

Source: WP Snippets