Wordpress: Customize TinyMCE buttons

/ Published in: PHP
Save to your folder(s)

Customize the TinyMCE buttons that are displayed in the Wordpress editor. Add this to your Wordpress theme's functions.php file.

Copy this code and paste it in your HTML
  1. /**
  2.  * Customize tinymce formatting buttons.
  3.  */
  4. function myformatTinyMCE($in) {
  5. $in['theme_advanced_buttons1']='bold,italic,|,bullist,numlist,blockquote,|,link,unlink,|,wp_adv';
  6. $in['theme_advanced_buttons2']='pastetext,pasteword,removeformat,|,charmap,|,undo,redo';
  8. return $in;
  9. }
  10. add_filter('tiny_mce_before_init', 'myformatTinyMCE' );

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.