Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron Graham coderaaron

  • Washington University in St. Louis
  • St. Louis, MO
View GitHub Profile
View Customize TinyMCE in WP
// add style selector drop down
function my_mce_buttons_2( $buttons ) {
array_unshift( $buttons, 'styleselect' );
return $buttons;
}
add_filter( 'mce_buttons_2', 'my_mce_buttons_2' );
// customize the MCE editor
function aah_customize_mce( $init ) {