WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/unregister nav menu

Description

Unregisters a custom navigation menu for a theme location.

Usage

 <?php unregister_nav_menu$location ); ?> 

Parameters

$location
(string) (required) Menu location identifier slug.
Default: None

Return Values

bool True on success, false on failure.

Example

 <?php unregister_nav_menu'primary' ); ?> 

Changelog

Source File

Related

Navigation Menu

See also index of Function Reference and index of Template Tags.