Display menu locations in all sites of a multi site, and display name of menu attached to each location

I have a multi site network setup. I am trying to list all menu locations for all sites, so I tried the following code: global $wpdb; $table_blogs = $wpdb->prefix . ‘blogs’; $blogs_results = $wpdb->get_results(“SELECT * FROM $table_blogs”); foreach ($blogs_results as $blog) { // Switch to a blog (or network site) switch_to_blog($blog->blog_id); // The following line…

Details