WordPress Admin – How to Disable the Visual Editor

How to Disable the Visual Editor

If you do not like using the visual editor you can disable it easily with the below snippet. On most of our clients admin dashboard we disable the visual editor as it can mess with custom HTML.

Implementation

1. Either code and paste the code into your themes functions.php or child theme
2. If you are not that technical then install the WordPress Snippets plugin


* @snippet  WordPress Admin - How to Disable the Visual Editor
* @code     https://techskilled.co.uk/snippets/wordpress-admin-how-to-disable-the-visual-editor
* @author   https://techskilled.co.uk
*/

add_filter(‘user_can_richedit’ , create_function(” , ‘return false;’) , 50);

NEED HELP?

If you are struggling to implement the SVG snippet then we can help from £9.99 – use our contact form below and we will get straight back to you!

HELP ME IMPLEMENT THIS SNIPPET

Leave a comment

Shares