Created
February 13, 2014 13:18
-
-
Save natejones/8974878 to your computer and use it in GitHub Desktop.
Customize WordPress WYSIWYG
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
// 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