Forked from JeffAspen/WooCommerce - Change Checkout Notes Label and Place Holder Text
Created
June 3, 2018 02:20
-
-
Save 13122310958/48690a4adec05e50acd8b51011e23de5 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
ty