WordPress – How to Remove the WSWIG Editor

In order to remove the WSWIG editor from your WordPress posts, pages and custom post types, simply add the following code to your WordPress themes functions.php file:

/*
Disable WSWIG Editor
*/
functionemersonthis_disable_visual_editor(){# add logic here if you want to permit it selectivelyreturnfalse;}add_filter('user_can_richedit','emersonthis_disable_visual_editor',50);