wphooks.info - wp_delete_nav_menu

wp_delete_nav_menu

(trunk - 5.0-alpha-42993)

The hook occurs in the following file:

wp-includes/nav-menu.php:
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
	if ( $result && ! is_wp_error( $result ) ) {

		/**
		 * Fires after a navigation menu has been successfully deleted.
		 *
		 * @since 3.0.0
		 *
		 * @param int $term_id ID of the deleted menu.
		 */
		do_action( 'wp_delete_nav_menu', $menu->term_id );
	}

	return $result;
}

/**
 * Save the properties of a menu or create a new menu with those properties.
 *
 * Note that `$menu_data` is expected to be pre-slashed.