Skip to content

Instantly share code, notes, and snippets.

@J-H-Mojumder
Created May 13, 2022 05:55
Show Gist options
  • Save J-H-Mojumder/014b7c523d002bcd22b4f65a2810dff5 to your computer and use it in GitHub Desktop.
Save J-H-Mojumder/014b7c523d002bcd22b4f65a2810dff5 to your computer and use it in GitHub Desktop.
Change the position of the vendor dashboard menus
<?php
add_filter( 'dokan_get_dashboard_nav', 'move_the_booking_tab_up', 13 );
function move_the_booking_tab_up( $urls ) {
/*Urls of the menus
Dashboard ['dashboard']['pos']
Dashboard ['products']['pos']
Dashboard ['orders']['pos']
Dashboard ['withdraw']['pos']
Dashboard ['settings']['pos']
Dashboard ['coupons']['pos']
Dashboard ['followers']['pos']
Dashboard ['reviews']['pos']
Dashboard ['reports']['pos']
Dashboard ['subscription']['pos']
Dashboard ['booking']['pos']
Dashboard ['tools']['pos']
*/
$urls['booking']['pos'] = 32; //This is an example. You will need to use the array value as per your reuirement.
return $urls;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment