Readonly not working
-
Hi im using this code to make the billing_email field turn into a read only field
add_action (‘woocommerce_checkout_fields’,’readonly_billing_email’,10,1);
function readonly_billing_email($checkout_fields){
$checkout_fields[‘billing’][‘billing_email’][‘custom_attributes’] = array(‘readonly’ => ‘readonly’);
return $checkout_fields;}
But its notworkig , do you guys know why ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Readonly not working’ is closed to new replies.