Skip to content

Commit 1f29c4f

Browse files
authored
Added the "register_nav_menu" function
1 parent ef60914 commit 1f29c4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

functions.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
5050

5151
$output .= apply_filters('walker_nav_menu_start_el', $item_output, $item, $depth, $args);
5252
}
53-
}
53+
}
54+
// register a new menu
55+
register_nav_menu('main-menu', 'Main menu');

0 commit comments

Comments
 (0)