Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. add_action('woocommerce_after_order_notes', 'custom_checkout_field');
  2.  
  3. function custom_checkout_field($checkout)
  4.  
  5. {
  6.  
  7. woocommerce_form_field('custom_field_name', array(
  8. 'type' => 'text',
  9. 'class' => array(
  10. 'my-field-class form-row-wide') ,
  11.  
  12. 'placeholder' => __('New Custom Field') ,) ,
  13. $checkout->get_value('custom_field_name'));
  14. echo '</div>';
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement