Last active
October 9, 2020 09:20
-
-
Save zorem/d4eae03fdd6a723661d07e43fb3312a7 to your computer and use it in GitHub Desktop.
The function is going to add this new custom order status as paid statuses.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('woocommerce_order_is_paid_statuses', 'custom_status_woocommerce_order_is_paid_statuses'); | |
function custom_status_woocommerce_order_is_paid_statuses($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