How is it possible to change the order of menu links?
Hi,
Please try this PHP snippet:
For example, this code snippet puts the Settings item in the first place (you can change other items by changing their name in this code snippet).
add_filter(
'hivepress/v1/menus/user_account',
function( $menu ) {
if(isset($menu['items']['user_edit_settings'])){
$menu['items']['user_edit_settings']['_order'] = 1;
}
return $menu;
},
1000
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.