Skip to content

Instantly share code, notes, and snippets.

@justingreerbbi
Created October 8, 2018 14:18
Show Gist options
  • Select an option

  • Save justingreerbbi/bc2f2030244aad245d1982e90dfb2da7 to your computer and use it in GitHub Desktop.

Select an option

Save justingreerbbi/bc2f2030244aad245d1982e90dfb2da7 to your computer and use it in GitHub Desktop.
User Wallet Credit System - Modify Order Status when the wallet is used
<?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