Created
October 8, 2018 14:18
-
-
Save justingreerbbi/bc2f2030244aad245d1982e90dfb2da7 to your computer and use it in GitHub Desktop.
User Wallet Credit System - Modify Order Status when the wallet is used
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 | |
| /** | |
| * Modifies the order status for orders made with user wallet for WooCommerce | |
| * Prioroty set HIGH for pro since plugin handles this filter and this is a bypass for statuses not yet supported | |
| */ | |
| add_filter('wpuw_update_status', 'v3zzq_example_modify', 1); | |
| function v3zzq_example_modify(){ | |
| return 'processing'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment