wp_create_nav_menu


wp_create_nav_menu ( $menu_name )

Parameters:
  • (string) menu_name Menu name.
Returns:
  • (int|WP_Error) Menu ID on success, WP_Error object on failure.
Defined at:

Description

Creates a navigation menu.Note that `$menu_name` is expected to be pre-slashed.

Related Functions

wp_delete_nav_menu, wp_get_nav_menus, wp_nav_menu, register_nav_menu, wp_get_nav_menu_name

Top Google Results

User discussions

wpseek mobile