Created
May 13, 2022 05:55
-
-
Save J-H-Mojumder/014b7c523d002bcd22b4f65a2810dff5 to your computer and use it in GitHub Desktop.
Change the position of the vendor dashboard menus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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