Created
August 18, 2014 09:13
-
-
Save mustardBees/2e254c3c0547e844ce67 to your computer and use it in GitHub Desktop.
Remove text colour button from editor
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
<?php | |
/** | |
* Remove text colour button from editor | |
*/ | |
function iweb_remove_text_colour_button( $buttons ) { | |
if ( ( $key = array_search( 'forecolor', $buttons ) ) !== false ) { | |
unset( $buttons[$key] ); | |
} | |
return $buttons; | |
} | |
add_filter( 'mce_buttons_2', 'iweb_remove_text_colour_button' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment