Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save madeinnordeste/4ad4c3233e177c6c5d27 to your computer and use it in GitHub Desktop.
Save madeinnordeste/4ad4c3233e177c6c5d27 to your computer and use it in GitHub Desktop.
Wordpress: Admin disable TinyMCE buttons
<?php
/*
Disable tinyMCE buttons in Wordpress admin
add lines in 'wp-content/themes/<youttheme>/functions.php'
*/
function do_change_mce_buttons( $initArray ) {
//@see http://wiki.moxiecode.com/index.php/TinyMCE:Control_reference
$initArray['theme_advanced_blockformats'] = 'p';
$initArray['theme_advanced_disable'] = 'spellchecker,emotions,flash,fullscreen,pasteword';
return $initArray;
}
add_filter('tiny_mce_before_init', 'do_change_mce_buttons');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment