Skip to content

Instantly share code, notes, and snippets.

@woogist
Created February 2, 2026 06:47
Show Gist options
  • Select an option

  • Save woogist/3960246d263bf8b2db37c21be5f9f8c1 to your computer and use it in GitHub Desktop.

Select an option

Save woogist/3960246d263bf8b2db37c21be5f9f8c1 to your computer and use it in GitHub Desktop.
[WooCommerce Shipwire] Update the valid statuses for exporting Shipwire orders
<?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