Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Tour Extras
  5. Filter :wp_travel_tour_extras_tabs

Filter :wp_travel_tour_extras_tabs

WP Travel tour extras tabs.

Source

File: /inc/admin/extras/class-tour-extras-admin-metabox.php
Used by: /inc/admin/extras/class-tour-extras-admin-metabox.php

Parameters
$tabs

Example:

function prefix_wp_travel_tour_extras_tabs( $tabs ) {
    $tour_extras['tour_extras_gallery'] = array(
    'tab_label' => __( 'Gallery', 'wp-travel' ),
    'content_title' => __( 'Gallery', 'wp-travel' ),
    'priority' => 20,
    'callback' =>
    'wp_travel_tour_extras_gallery_tab_callback',
    'icon' => 'fa-images',
    );
    $tabs[ ‘tour-extras’ ] = $tour_extras;
    return $tabs;
}
add_filter( 'wp_travel_tour_extras_tabs', 'prefix_wp_travel_tour_extras_tabs' );
Was this article helpful to you? Yes No

How can we help?