Posted By

mb2o on 04/16/11


Tagged

wordpress


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

mb2o
hkamci
hasssan


Add Buttons to WordPress wysiwyg editor


 / Published in: PHP
 

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

Report this snippet  

You need to login to post a comment.