This file contains 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 | |
/** | |
* Change order status to Extras Only if all ordered items from Extras category | |
* Change order status to Proc/ Gift Box if product addon gif box selected YES | |
* Change order status to Intl Order if order is not from US/Canada | |
*/ | |
function change_status_giftbox_and_extrasonly( $order_id ) { | |
if ( ! $order_id ) return; | |
// Get order object |