Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters
  5. Filter :wp_travel_user_dashboard_menus

Filter :wp_travel_user_dashboard_menus

Filter for WP Travel dashboard menus.

Source

File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php

Parameters
$dashboard_menus

Example:

function prefix_wp_travel_user_dashboard_menus( $dashboard_menus ){
    $dashboard_menus[‘test’] => array(
    'menu_title' => __( 'Test', 'wp-travel' ),
    'menu_icon' => '',
    'menu_content_cb' =>
    'dashboard_menu_test_tab' ),
    'priority' => 60,
    ),
    return $dashboard_menus;
}
add_filter( 'wp_travel_user_dashboard_menus', 'prefix_wp_travel_user_dashboard_menus' );
Was this article helpful to you? Yes No

How can we help?