Skip to content

Instantly share code, notes, and snippets.

Last active September 26, 2017 18:34
What would you like to do?
Add New Buttons to the WordPress Editor
//* Enable hidden buttons to third row of post editor
function my_custom_mce_buttons_3( $buttons ) {
* Enable core button(s) that are disabled by default
$buttons[] = 'fontselect';
$buttons[] = 'fontsizeselect';
$buttons[] = 'wp_page';
$buttons[] = 'superscript';
$buttons[] = 'subscript';
$buttons[] = 'underline';
return $buttons;
add_filter( 'mce_buttons_3', 'my_custom_mce_buttons_3' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment