Relabel WooCommerce Checkout Fields with Hooks

This really comes in handy when you’re using specific language on your website for Usernames or need to add in additional fields at signup.

// Hook in

add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );

// Our hooked in function - $fields is passed via the filter!

function custom_override_checkout_fields( $fields ) {

     $fields['account']['account_username']['placeholder'] = 'John Smith';

     $fields['account']['account_username']['label'] = 'First & Last Name';

     return $fields;


Additional instructions available here, and further documentation available on the WooThemes website.

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.