Created
January 13, 2015 03:36
-
-
Save raewrites/defee72097489fcb8b4e to your computer and use it in GitHub Desktop.
enable-styleselect
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
// Callback function to insert 'styleselect' into the $buttons array | |
function my_mce_buttons_2( $buttons ) { | |
array_unshift( $buttons, 'styleselect' ); | |
return $buttons; | |
} | |
// Register our callback to the appropriate filter | |
add_filter('mce_buttons_2', 'my_mce_buttons_2'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment