wphooks.info - wp_get_nav_menu_items

wp_get_nav_menu_items

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/nav-menu.php:
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
	/**
	 * Filters the navigation menu items being returned.
	 *
	 * @since 3.0.0
	 *
	 * @param array  $items An array of menu item post objects.
	 * @param object $menu  The menu object.
	 * @param array  $args  An array of arguments used to retrieve menu item objects.
	 */
	return apply_filters( 'wp_get_nav_menu_items', $items, $menu, $args );
}

/**
 * Decorates a menu item object with the shared navigation menu item properties.
 *
 * Properties:
 * - ID:               The term_id if the menu item represents a taxonomy term.
 * - attr_title:       The title attribute of the link element for this menu item.
 * - classes:          The array of class attribute values for the link element of this menu item.