Hello @fabriciobarros10 ,
I can show you one workaround which will give the kind of same output –
First we will remove the original menu for store and payment settings –
add_filter( 'dokan_get_dashboard_settings_nav', function($settings_sub) {
unset($settings_sub['store']);
unset($settings_sub['payment']);
return $settings_sub;
} );
Then we will add them on the main dashboard menu list –
add_filter('dokan_get_dashboard_nav', function($urls){
$urls['store'] = array(
'title' => __( 'Store', 'dokan-lite'),
'icon' => '<i class="fa fa-university"></i>',
'url' => dokan_get_navigation_url( 'settings/store' ),
'pos' => 5,
'permission' => 'dokan_view_store_settings_menu'
);
$urls['payment'] = array(
'title' => __( 'Payment', 'dokan-lite'),
'icon' => '<i class="fa fa-credit-card"></i>',
'url' => dokan_get_navigation_url( 'settings/payment' ),
'pos' => 6,
'permission' => 'dokan_view_store_payment_menu'
);
return $urls;
});
You can hide the settings tab with CSS –
.dokan-dashboard-menu li.settings {
display: none;
}
I hope this helps.
Thank you.