Hello, this is a dynamic url, the structure is
author/admin/?geodir_dashbord=true&stype=gd_event
for events, and as you can see it changes based on the username (in the example, you can see the admin)
You can do that adding the following code in your functions.php
add_filter( 'wp_nav_menu_items', 'my_nav_menu_my_event' );
function my_nav_menu_my_event($menu) {
global $wpdb,$current_user;
get_currentuserinfo();
$username= $current_user->user_login;
if (!is_user_logged_in())
return $menu;
else
$menuextra = '<li><a href="/author/' . $username . '/?geodir_dashbord=true&stype=gd_event">' . __('My Events') . '</a></li>';
$menuextra2 = '<li><a href="/author/' . $username . '/?geodir_dashbord=true&stype=gd_place">' . __('My Listings') . '</a></li>';
$menu = $menu . $menuextra . $menuextra2;
return $menu;
}
change gd_place or gd_event if your evnts/listings have a different post type name