Posted By

adambundy on 12/18/11


Tagged

php wordpress functions


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

adambundy


Wordpress - Add Buttons in the Visual Editor


 / Published in: PHP
 

Courtesy CSSTricks (http://css-tricks.com/snippets/wordpress/turn-on-more-buttons-in-the-wordpress-visual-editor/)

  1. function add_more_buttons($buttons) {
  2. $buttons[] = 'hr';
  3. $buttons[] = 'del';
  4. $buttons[] = 'sub';
  5. $buttons[] = 'sup';
  6. $buttons[] = 'fontselect';
  7. $buttons[] = 'fontsizeselect';
  8. $buttons[] = 'cleanup';
  9. $buttons[] = 'styleselect';
  10. return $buttons;
  11. }
  12. add_filter("mce_buttons_3", "add_more_buttons");

Report this snippet  

You need to login to post a comment.