Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Checkout Page
  5. Filter : wp_travel_checkout_fields

Filter : wp_travel_checkout_fields

Source

File : /inc/form-fields.php

Used by
/inc/form-fields.php

Example :

function wp_travel_billing_form_edit_fields( $checkout_fields ) {

    unset(
        $checkout_fields['traveller_fields']['country']
    );
    return $checkout_fields;
}

add_filter('wp_travel_checkout_fields','wp_travel_billing_form_edit_fields');
Was this article helpful to you? Yes No

How can we help?