If we need to get list of all wordpress menus we have to use the get terms,
The code to fetch all the WordPress menus os shown below

$menus = get_terms('nav_menu');
foreach($menus as $menu){
  echo $menu->name . " n";
} 

Leave a Reply

Your email address will not be published.