Skip to content

Instantly share code, notes, and snippets.

@joshuafredrickson
Last active December 12, 2015 12:29
Show Gist options
  • Save joshuafredrickson/4772190 to your computer and use it in GitHub Desktop.
Save joshuafredrickson/4772190 to your computer and use it in GitHub Desktop.
WordPress: Create wp_editor for code; disable WYSIWYG functions
$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