This file contains hidden or 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.'; |