Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Map
  5. Filter :wp_travel_maps

Filter :wp_travel_maps

WP Travel available maps.

Active Since v1.7.6

Source

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

Parameters
$wp_travel_maps

Example:

function prefix_wp_travel_maps( $wp_travel_maps ) {
    $wp_travel_maps[‘google-map’] = ‘__( 'Google Map',
    'wp-travel' )’;
    return $settings_fields;
}
add_filter( 'wp_travel_maps', 'prefix_wp_travel_maps' );
Was this article helpful to you? Yes No

How can we help?