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_billing_fields

Filter :wp_travel_checkout_billing_fields

WP Travel checkout billing fields.

Source

File: /inc/form-fields.php
Used by: /inc/form-fields.php

Parameters
$billing_fields

Example:

function prefix_wp_travel_checkout_billing_fields( $billing_fields ) {
    $billing_fields[ ‘custom field’ ] = ‘value’;
    return $billing_fields;
}
add_filter( 'wp_travel_checkout_billing_fields', 'prefix_wp_travel_checkout_billing_fields' );
Was this article helpful to you? Yes No

How can we help?