Add Buttons to WordPress wysiwyg editor


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



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.