Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gizalink/b6bbbc64d52dee2c0e980f06fccd08c7 to your computer and use it in GitHub Desktop.
Save gizalink/b6bbbc64d52dee2c0e980f06fccd08c7 to your computer and use it in GitHub Desktop.
Rename WooCommerce checkout field label & placeholder
// WooCommerce Rename Checkout Fields
add_filter( 'woocommerce_checkout_fields' , 'custom_rename_wc_checkout_fields' );
// Change placeholder and label text
function custom_rename_wc_checkout_fields( $fields ) {
$fields['billing']['billing_first_name']['placeholder'] = 'Wonka';
$fields['billing']['billing_first_name']['label'] = 'Your Awesome First Name';
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment