This is my code thus far:
function register_my_menus() {
register_nav_menus(
array(
'header-menu' => __( 'Header Menu' ),
'extra-menu' => __( 'Extra Menu' )
)
);
}
add_action( 'init', 'register_my_menus' );
But this seems to only register ‘locations’ in which to place custom menus.
What I want is for all the custom menus (and menu items) to be fully setup on after_theme_setup
or init
.
Thanks
Example code taken from new2wp.com located HERE
For anyone seeking the same solution, here is the code:
All you need to do is modify the
$menus
array. 🙂