-
-
Save agenciadw/967b1c5edb8b3fdf1796c135acc9ae24 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
bom dia, por favor poderia me tirar uma duvida? onde coloco esse trecho de código? qual arquivo?