wphooks.info - wp_nav_menu

wp_nav_menu

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/nav-menu-template.php:
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
	/**
	 * Filters the HTML content for navigation menus.
	 *
	 * @since 3.0.0
	 *
	 * @see wp_nav_menu()
	 *
	 * @param string   $nav_menu The HTML content for the navigation menu.
	 * @param stdClass $args     An object containing wp_nav_menu() arguments.
	 */
	$nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args );

	if ( $args->echo ) {
		echo $nav_menu;
	} else {
		return $nav_menu;
	}
}

/**