Created
October 24, 2020 08:46
-
-
Save Musilda/56c77e8b27418d4525fcc336762a2d71 to your computer and use it in GitHub Desktop.
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 | |
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