Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Checkout Page
  5. Filter :apply_filters( wp_travel_country_list, $countries )

Filter :apply_filters( wp_travel_country_list, $countries )

WP Travel countries list.

Source

File: /inc/countries.php
Used by: /inc/countries.php

Parameters
$countries

Example:

function prefix_wp_travel_country_list( $countries ) {
    $countries[‘COUNTRY SHORT FORM’] = ‘COUNTRY NAME’;
    return $countries;
}
add_filter( 'wp_travel_country_list', 'prefix_wp_travel_country_list' );
Was this article helpful to you? Yes No

How can we help?