Skip to content

Instantly share code, notes, and snippets.

@danielbitzer
Created December 6, 2017 18:50
Show Gist options
  • Save danielbitzer/2da4bc910ce409c593fd376fed5bc14e to your computer and use it in GitHub Desktop.
Save danielbitzer/2da4bc910ce409c593fd376fed5bc14e to your computer and use it in GitHub Desktop.
AutomateWoo - Include custom order statuses in the customer last order date calculation, this applies to the customer win back trigger
<?php
add_filter( 'automatewoo/customer/last_order_date_statuses', function( $statuses ){
$statuses[] = 'my-custom-status';
return $statuses;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment