wphooks.info - has_nav_menu

has_nav_menu

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/nav-menu.php:
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
	}

	/**
	 * Filters whether a nav menu is assigned to the specified location.
	 *
	 * @since 4.3.0
	 *
	 * @param bool   $has_nav_menu Whether there is a menu assigned to a location.
	 * @param string $location     Menu location.
	 */
	return apply_filters( 'has_nav_menu', $has_nav_menu, $location );
}

/**
 * Returns the name of a navigation menu.
 *
 * @since 4.9.0
 *
 * @param string $location Menu location identifier.
 * @return string Menu name.