Created
February 2, 2026 06:47
-
-
Save woogist/3960246d263bf8b2db37c21be5f9f8c1 to your computer and use it in GitHub Desktop.
[WooCommerce Shipwire] Update the valid statuses for exporting Shipwire orders
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 // only copy if needed | |
| /** | |
| * Update the valid statuses for exporting Shipwire orders | |
| * | |
| * @param array $statuses the valid order statuses for export (without wc- prefix) | |
| * @return array the updated statuses | |
| */ | |
| function sv_wc_shipwire_valid_order_statuses_for_export( $statuses ) { | |
| // you could add multiple statuses as needed, such as custom order statuses, for export | |
| $statuses[] = 'completed'; | |
| return $statuses; | |
| } | |
| add_filter( 'wc_shipwire_valid_order_statuses_for_export', 'sv_wc_shipwire_valid_order_statuses_for_export' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment