Advertisement
bedas

CRED Button Filters

Mar 9th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.22 KB | None | 0 0
  1. add_filter('toolset_button_show_popular_text', 'toolset_button_show_popular_text');
  2. function toolset_button_show_popular_text($text)
  3. {
  4.     return 'my own popular';
  5. }
  6.  
  7. add_filter('toolset_button_hide_popular_text', 'toolset_button_hide_popular_text');
  8. function toolset_button_hide_popular_text($text)
  9. {
  10.     return 'my own hide';
  11. }
  12.  
  13. add_filter('toolset_button_add_new_text', 'toolset_button_add_new_text');
  14. function toolset_button_add_new_text($text)
  15. {
  16.     return 'my own add new';
  17. }
  18. add_filter('toolset_button_cancel_text', 'toolset_button_cancel_text');
  19. function toolset_button_cancel_text($text)
  20. {
  21.     return 'my own cancel';
  22. }
  23.  
  24. add_filter('toolset_button_add_text', 'toolset_button_add_text');
  25. function toolset_button_add_text($text)
  26. {
  27.     return 'my own add';
  28. }
  29.  
  30. add_filter('toolset_button_delete_repetition_text', 'toolset_button_delete_repetition_text', 10, 2);
  31. function toolset_button_delete_repetition_text($text, $config)
  32. {
  33.     return 'my own delete repetition: '.$config['title'];
  34. }
  35.  
  36. add_filter('toolset_button_add_repetition_text', 'toolset_button_add_repetition_text', 10, 2);
  37. function toolset_button_add_repetition_text($text, $config)
  38. {
  39.     return 'my own add repetition: '.$config['title'];
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement