Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_title

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
225            * @param stdClass $args      An object of wp_nav_menu() arguments.
226            * @param int      $depth     Depth of menu item. Used for padding.
227            */
228           $li_atts       = apply_filters( 'nav_menu_item_attributes', $li_atts, $menu_item, $args, $depth );
229           $li_attributes = $this->build_atts( $li_atts );
230
231           $output .= $indent . '<li' . $li_attributes . '>';
232
233           /** This filter is documented in wp-includes/post-template.php */
234           $title = apply_filters( 'the_title', $menu_item->title, $menu_item->ID );
235
236           // Save filtered value before filtering again.
237           $the_title_filtered = $title;
238
239           /**
240            * Filters a menu item's title.
241            *
242            * @since 4.4.0
243            *