mbcreation

WooCommerce Payment Reminder : add action to pending orders

Apr 14th, 2014
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. // put the code below in your file functions.php in your theme
  2.  
  3. function my_button_status_filter($array)
  4. {
  5.     //add in the array all the statuses for whom you want the button
  6.     return array('on-hold', 'pending');
  7. }
  8. add_filter('wopar_button_status_filter', 'my_button_status_filter');
Advertisement
Add Comment
Please, Sign In to add comment