Skip to content

Instantly share code, notes, and snippets.

@Musilda
Created October 24, 2020 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Musilda/56c77e8b27418d4525fcc336762a2d71 to your computer and use it in GitHub Desktop.
Save Musilda/56c77e8b27418d4525fcc336762a2d71 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'woocommerce_order_is_paid_statuses', 'musilda_change_paid_statuses' );
function musilda_change_paid_statuses( $statuses ){
foreach( $statuses as $key => $status ){
if ( 'processing' === $status ) {
unset( $statuses[$key] );
}
return $statuses;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment