• Resolved kullussteve

    (@kullussteve)


    Hi,

    Want to hide the word “Billing” from checkout page error messages. Tried the code (below), but it will break the page (added to child theme function.php). Any suggestions?

    function customize_wc_errors( $error ) {
    if ( strpos( $error, ‘Billing ‘ ) !== false ) {
    $error = str_replace(“Billing “, “”, $error);
    }
    return $error;
    }
    add_filter( ‘woocommerce_add_error’, ‘customize_wc_errors’ );

    In this line: $error = str_replace(“Billing “, “”, $error);

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove “Billing” from checkout page error messages’ is closed to new replies.