Skip to content

Instantly share code, notes, and snippets.

@nikosolihin
Forked from kentbrew/tinymce_wordpress.txt
Created January 25, 2017 02:27
Show Gist options
  • Save nikosolihin/1228a8038009c51443d20ef75006c711 to your computer and use it in GitHub Desktop.
Save nikosolihin/1228a8038009c51443d20ef75006c711 to your computer and use it in GitHub Desktop.
How to turn off TinyMCE in Wordpress
In wordpress/wp-includes/class-wp-editor.php, look for the tinymce setting:
public static function parse_settings($editor_id, $settings) {
$set = wp_parse_args( $settings, array(
...
'tinymce' => true, // load TinyMCE, can be used to pass settings directly to TinyMCE using an array()
...
) );
Set it to false and you should be good to go.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment