WPDev.one
Core Function
View Source on Trac ↗

wp_get_nav_menu_to_edit()

wp_get_nav_menu_to_edit( mixed $menu_id = 0 )

Returns the menu formatted to edit.

Parameters 0 required

Name / Type Description
$menu_id
int

Optional. The ID of the menu to format. Default 0.

Return Value

((string)
| WP_Error) The menu formatted to edit or error object on failure.

Function Information

Since Version
3.0.0
Source File
wp-admin/includes/nav-menu.php
Advertisement