Created
April 29, 2015 14:48
-
-
Save JeffAspen/68e3e4ca775478bf52de to your computer and use it in GitHub Desktop.
WooCommerce - Change Checkout Notes Label and Place Holder Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-----------------------------------------------------------------------------------*/ | |
/* 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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment