Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove WP TinyMCE toolbar buttons
// Remove the underline and full-justify toolbar buttons
function scl_mce_buttons( $buttons ) {
$remove = array( 'underline', 'alignjustify' );
return array_diff( $buttons, $remove );
add_filter( 'mce_buttons_2', 'scl_mce_buttons' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment