Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_tabs

WP Travel admin tabs.

Source

File: /inc/admin/class-admin-metaboxes.php
Used by: /inc/admin/class-admin-metaboxes.php

Parameters
$tabs

Example:

function prefix_wp_travel_tabs( $tabs ) {
    $tabs[‘custom_tab’] = array(
    'tab_label' => __( 'Custom Tab',
    'wp-travel' ),
    'content_title' => __( ‘Custom Tabs',
    'wp-travel' ),
    'priority' => 130,
    'callback' =>
    'wp_travel_trip_callback_custom_tab',
    // 'icon' => 'fa-images',
    ),
    return $tabs;
}
add_filter( 'wp_travel_tabs', 'prefix_wp_travel_tabs' );
Was this article helpful to you? Yes No

How can we help?