wp_delete_nav_menu WordPress Action Hook

The wp_delete_nav_menu hook is called when a nav menu is deleted. This hook can be used to clean up any data associated with the menu.

do_action( 'wp_delete_nav_menu', int $term_id ) #

Fires after a navigation menu has been successfully deleted.


Parameters

$term_id

(int)ID of the deleted menu.


Top ↑

Source

File: wp-includes/nav-menu.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.