Skip to content

Instantly share code, notes, and snippets.

@raewrites
Created January 13, 2015 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raewrites/defee72097489fcb8b4e to your computer and use it in GitHub Desktop.
Save raewrites/defee72097489fcb8b4e to your computer and use it in GitHub Desktop.
enable-styleselect
// 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