Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created February 11, 2012 15:01
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikejolley/1800395 to your computer and use it in GitHub Desktop.
Save mikejolley/1800395 to your computer and use it in GitHub Desktop.
WooCommerce - Change order notes placeholder
add_filter('woocommerce_checkout_fields', 'custom_woocommerce_checkout_fields');
function custom_woocommerce_checkout_fields( $fields ) {
$fields['order']['order_comments']['placeholder'] = 'Your custom placeholder';
return $fields;
}
@simaem
Copy link

simaem commented Nov 13, 2015

Thanks 👍

@gangesh
Copy link

gangesh commented Dec 16, 2015

echo "Thank you!";

@ikazi1
Copy link

ikazi1 commented Feb 11, 2019

any chance to make this mandatory as well?

@haleyngonadi
Copy link

Thank you very much! :)

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