wphooks.info - wp_get_nav_menu_name

wp_get_nav_menu_name

(trunk - 5.0-alpha-42177)

*** New in trunk ***

The hook occurs in the following file:

wp-includes/nav-menu.php:
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
	}

	/**
	 * Filters the navigation menu name being returned.
	 *
	 * @since 4.9.0
	 *
	 * @param string $menu_name Menu name.
	 * @param string $location  Menu location identifier.
	 */
	return apply_filters( 'wp_get_nav_menu_name', $menu_name, $location );
}

/**
 * Determines whether the given ID is a nav menu item.
 *
 * @since 3.0.0
 *
 * @param int $menu_item_id The ID of the potential nav menu item.
 * @return bool Whether the given ID is that of a nav menu item.