-
-
Save fernandoacosta/77b2f1dd544b5055e21ae82d7ddf0d40 to your computer and use it in GitHub Desktop.
Prevenir mudança de status de "Concluído" para "Processando"
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 | |
/** | |
* | |
* fernandoacosta.net | |
* | |
*/ | |
add_action( 'woocommerce_order_status_completed_to_processing', 'wc_prevent_completed_to_processing' ); | |
function wc_prevent_completed_to_processing( $order_id, $order ) { | |
$order->update_status( 'completed', 'Status atualizado para Concluído novamente.' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment