Created
August 11, 2016 07:23
-
-
Save xadapter/1978c9193231ebed0a6a83cd8dce8730 to your computer and use it in GitHub Desktop.
WooCommece - Override Existing Checkout Fields
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
add_filter( 'woocommerce_checkout_fields' , 'xa_override_existing_checkout_fields' ); | |
function xa_override_existing_checkout_fields( $fields ) { | |
$fields['order']['order_comments']['placeholder'] = 'Let us know your color preference.'; | |
$fields['order']['order_comments']['label'] = 'Gift Wrap Preference'; | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment