Skip to content

Instantly share code, notes, and snippets.

@natejones
Created February 13, 2014 13:18
Show Gist options
  • Save natejones/8974878 to your computer and use it in GitHub Desktop.
Save natejones/8974878 to your computer and use it in GitHub Desktop.
Customize WordPress WYSIWYG
// customize WYSIWYG buttons
if( !function_exists('base_extended_editor_mce_buttons') ){
function base_extended_editor_mce_buttons($buttons) {
// The settings are returned in this array. Customize to suite your needs.
return array(
'bold', 'italic', 'underline', 'sub', 'sup', 'charmap', 'removeformat', 'spellchecker'
);
/* WordPress Default
return array(
'bold', 'italic', 'strikethrough', 'separator',
'bullist', 'numlist', 'blockquote', 'separator',
'justifyleft', 'justifycenter', 'justifyright', 'separator',
'link', 'unlink', 'wp_more', 'separator',
'spellchecker', 'fullscreen', 'wp_adv'
); */
}
add_filter("mce_buttons", "base_extended_editor_mce_buttons", 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment