WordPress как на ладони
wordpress jino
фильтр не описан

wp_nav_menu_objects хук-фильтр . WP 3.1.0

Filters the sorted list of menu item objects before generating the menu's HTML.

Использование

add_filter( 'wp_nav_menu_objects', 'filter_function_name_8313', 10, 2 );
function filter_function_name_8313( $sorted_menu_items, $args ){
	// filter...

	return $sorted_menu_items;
}
$sorted_menu_items(array)
The menu items, sorted by each menu item's menu order.
$args(stdClass)
An object containing wp_nav_menu() arguments.

Связи хука

Используется в: wp_nav_menu()

Остальные хуки из: wp_nav_menu():

Кусок кода с хуком

Фрагмент из: wp-includes/nav-menu-template.php WP 4.9
...
			if ( isset( $menu_items_with_children[ $menu_item->ID ] ) )
				$menu_item->classes[] = 'menu-item-has-children';
		}
	}

	unset( $menu_items, $menu_item );

	/**
	 * Filters the sorted list of menu item objects before generating the menu's HTML.
	 *
	 * @since 3.1.0
	 *
	 * @param array    $sorted_menu_items The menu items, sorted by each menu item's menu order.
	 * @param stdClass $args              An object containing wp_nav_menu() arguments.
	 */
	$sorted_menu_items = apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args );

	$items .= walk_nav_menu_tree( $sorted_menu_items, $args->depth, $args );
	unset($sorted_menu_items);

	// Attributes
	if ( ! empty( $args->menu_id ) ) {
		$wrap_id = $args->menu_id;
	} else {
		$wrap_id = 'menu-' . $menu->slug;
		while ( in_array( $wrap_id, $menu_id_slugs ) ) {
			if ( preg_match( '#-(\d+)$#', $wrap_id, $matches ) )
				$wrap_id = preg_replace('#-(\d+)$#', '-' . ++$matches[1], $wrap_id );
			else
				$wrap_id = $wrap_id . '-1';
		}
...