Advertisement
shakil97bd

Add copy,paste and cut buttons in your wp visual editor

Mar 3rd, 2015
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ************************* Add [copy,paste and cut] buttons in your wordpress visual post editor ************************
  2.  
  3. //Just pate this code in your theme's functions.php file.....
  4.  
  5.  
  6.  
  7. function enable_more_buttons($buttons) {
  8. $buttons[] = 'copy';
  9. $buttons[] = 'cut';
  10. $buttons[] = 'paste';
  11. return $buttons;
  12. }
  13. add_filter("mce_buttons_2", "enable_more_buttons");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement