Skip to content

Instantly share code, notes, and snippets.

@tallcoder
Forked from WebEndevSnippets/functions.php
Created November 22, 2019 19:27
Show Gist options
  • Save tallcoder/d7a56d9717ce227554b0882f5b0c1d16 to your computer and use it in GitHub Desktop.
Save tallcoder/d7a56d9717ce227554b0882f5b0c1d16 to your computer and use it in GitHub Desktop.
WooCommerce: Change Order Notes Placeholder Text
add_filter( 'woocommerce_checkout_fields', 'webendev_woocommerce_checkout_fields' );
/**
* Change Order Notes Placeholder Text - WooCommerce
*
*/
function webendev_woocommerce_checkout_fields( $fields ) {
$fields['order']['order_comments']['placeholder'] = 'Your custom placeholder';
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment