Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_setup_nav_menu_item

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
854      }
855
856      /**
857       * Filter a navigation menu item object.
858       *
859       * @since 3.0.0
860       *
861       * @param object $menu_item The menu item object.
862       */
863      return apply_filters( 'wp_setup_nav_menu_item', $menu_item );
864 }
865
866 /**
867  * Get the menu items associated with a particular object.
868  *
869  * @since 3.0.0
870  *
871  * @param int    $object_id   The ID of the original object.
872  * @param string $object_type The type of object, such as "taxonomy" or "post_type."