Skip Navigation

Tagged: 

This topic contains 0 replies, has 1 voice.

Last updated by angeloD-14 3 months, 4 weeks ago.

Assisted by: Paola Mendiburu.

Author Posts
July 24, 2024 at 9:14 am

angeloD-14

Contesto del problema:
Ho inserito una stringa in aspetto/ editor del tema/functions.php, dove deve mostrare un errore inserendo sotto 8 caratteri. La stringa è la seguente:

add_action( 'woocommerce_checkout_process', 'bbloomer_checkout_fields_custom_validation' );

function bbloomer_checkout_fields_custom_validation() {
if ( isset( $_POST['billing_fiscale'] ) && ! empty( $_POST['billing_fiscale'] ) ) {
if ( strlen( $_POST['billing_fiscale'] )

July 24, 2024 at 9:33 am