woocommerce_process_myaccount_field_

woocommerce_process_myaccount_field_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_process_myaccount_field_') is found 1 times:

  • /includes/class-wc-form-handler.php line 130
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
        $value = isset( $_POST[ $key ] ) ? wc_clean( wp_unslash( $_POST[ $key ] ) ) : '';
    }
     
    // Hook to allow modification of value.
    $value = apply_filters( 'woocommerce_process_myaccount_field_' . $key, $value );
     
    // Validation: Required fields.
    if ( ! empty( $field['required'] ) && empty( $value ) ) {
        /* translators: %s: Field name. */
        wc_add_notice( sprintf( __( '%s is a required field.', 'woocommerce' ), $field['label'] ), 'error', array( 'id' => $key ) );
    }