Set placeholder in address field on checkout to new text
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 18 Feb 2016 20:07:58 +0000 (15:07 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 18 Feb 2016 20:07:58 +0000 (15:07 -0500)
functions.php
style.css

index 434c8d3..ab24780 100755 (executable)
@@ -290,6 +290,7 @@ add_filter( 'wc_order_statuses', 'glm_change_order_status_names' );
 // Drop billing address line 2 in WooCommerce checkout page
 function custom_wc_checkout_fields( $fields ) {
     unset($fields['billing']['billing_address_2']);
+    $fields['billing']['billing_address_1']['placeholder'] = "Billing address must match your credit card!";
     return $fields;
 }
 add_filter( 'woocommerce_checkout_fields' , 'custom_wc_checkout_fields' );
index 3dcdbfc..c9a4d9e 100755 (executable)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: Tom's Mom's Cookies
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme made for Tom's Mom's Cookies.
-Version: 1.0.15
+Version: 1.0.16
 */