Personalizzare il Messaggio di Errore in WooCommerce
7 ott 2013, 16:21:16
Visualizzazioni: 14.7K
Voti: 2
Tutte le risposte alla domanda
1
1
Puoi farlo con il filtro woocommerce_add_error
. Aggiungi il seguente codice al tuo file functions.php.
// modifica l'errore degli abbonamenti
function my_woocommerce_add_error( $error ) {
if( 'The generic error message' == $error ) {
$error = 'The shiny brand new error message';
}
return $error;
}
add_filter( 'woocommerce_add_error', 'my_woocommerce_add_error' );

BFTrick
951
7 ott 2013 16:21:16
Commenti
Domande correlate
5
risposte
1
risposte