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
869      }
870
871      /**
872       * Filter a navigation menu item object.
873       *
874       * @since 3.0.0
875       *
876       * @param object $menu_item The menu item object.
877       */
878      return apply_filters( 'wp_setup_nav_menu_item', $menu_item );
879 }
880
881 /**
882  * Get the menu items associated with a particular object.
883  *
884  * @since 3.0.0
885  *
886  * @param int    $object_id   The ID of the original object.
887  * @param string $object_type The type of object, such as "taxonomy" or "post_type."