Home » WooCommerce: Edit “Returning Customer?” Message @ Checkout

WooCommerce: Edit “Returning Customer?” Message @ Checkout

by Tutor Aspire

When it comes to “editing” stuff, chances are WooCommerce gives us a “filter” we can use without overriding core. The more filters, the more customization we can do. In this case, I wanted to change the “Returning Customer?” message on my own checkout.

Editing the “Returning Customer” message @ WooCommerce checkout

PHP Snippet: Rename “Returning Customer?” @ WooCommerce Checkout

/**
 * @snippet       Rename "Returning Customer?" @ Checkout Page - WooCommerce
 * @how-to        Get tutoraspire.com FREE
 * @sourcecode    https://tutoraspire.com/?p=21719
 * @author        Tutor Aspire
 * @compatible    WC 3.5.4
 * @donate $9     https://www.tutoraspire.com
 */

add_filter( 'woocommerce_checkout_login_message', 'tutoraspire_return_customer_message' );

function tutoraspire_return_customer_message() {
return 'Have you shopped with us before?';
}

You may also like