Last active
January 17, 2018 16:05
-
-
Save joshfitzgerald/0d33309228995f8c01c35c4730b0e606 to your computer and use it in GitHub Desktop.
disable Wordpress Visual Editor for all users. No more <p> being stripped because switched from Text Mode to Visual Editor. Tell the lazy MFers to get off of Fakebook and learn simple HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//disable Visual Editor for all users | |
add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment