914Show WordPress Theme Menu
$l = get_nav_menu_locations();
$m = wp_get_nav_menu_items($l['footer-menu']);
foreach($m as $i) {
// $i->url;
// $i->title;
}
$l = get_nav_menu_locations();
$m = wp_get_nav_menu_items($l['footer-menu']);
foreach($m as $i) {
// $i->url;
// $i->title;
}
functions.php
function register_theme_menu() {
register_nav_menu('my-menu', 'My Menu');
}
add_action( 'init', 'register_theme_menu' );
Menu Location
$l = get_nav_menu_locations();
$m = wp_get_nav_menu_items($l['my-menu']);
foreach($m as $i) {
// custom HTML
echo $i->url;
echo $i->title;
}
The Developer Menu is straight-forward. Go to the Safari Preferences / Advanced and enable the menu.
The Debug Menu must be activated in the com.apple.Safari.plist. Either by issuing the following command:
defaults write com.apple.Safari IncludeInternalDebugMenu 1
Or by opening the plist with the Property List Editor Application and adding a new 'IncludeInternalDebugMenu' node, with a boolean value set to 1. Same thing, different means.
Don't forget to restart Safari to see the changes.