March 14, 2016
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.