Last active
December 12, 2015 12:29
-
-
Save joshuafredrickson/4772190 to your computer and use it in GitHub Desktop.
WordPress: Create wp_editor for code; disable WYSIWYG functions
This file contains hidden or 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
$content = 'CONTENT'; | |
$editor_id = 'EDITOR_ID'; | |
$settings = array( 'tinymce' => false, 'media_buttons' => false, 'quicktags' => false, 'wpautop' => false ); | |
wp_editor($content, $editor_id, $settings); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment