Edit text in WooCommerce Message Error

add_filter( 'woocommerce_add_error', 'twstudio_change_terms_popup_text' );
function twstudio_change_terms_popup_text( $error ) {
    if( 'You must accept our Terms & Conditions.' == $error ) {
        $error = 'Please accept our terms and conditions to proceed.';
    }
    return $error;
}

Leave a Reply

Your email address will not be published. Required fields are marked *