Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 13122310958/48690a4adec05e50acd8b51011e23de5 to your computer and use it in GitHub Desktop.
Save 13122310958/48690a4adec05e50acd8b51011e23de5 to your computer and use it in GitHub Desktop.
WooCommerce - Change Checkout Notes Label and Place Holder Text
/*-----------------------------------------------------------------------------------*/
/* WooCommerce - Change Checkout Notes Label and Place Holder Text
/*-----------------------------------------------------------------------------------*/
// Hook in
add_filter( 'woocommerce_checkout_fields' , 'theme_override_checkout_notes_fields' );
// Our hooked in function - $fields is passed via the filter!
function theme_override_checkout_notes_fields( $fields ) {
$fields['order']['order_comments']['placeholder'] = 'Add some order notes or a gift message here.';
$fields['order']['order_comments']['label'] = 'Order notes or gift message';
return $fields;
}
@AugustinCF
Copy link

ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment