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
208            * @param stdClass $args      An object of wp_nav_menu() arguments.
209            * @param int      $depth     Depth of menu item. Used for padding.
210            */
211           $li_atts       = apply_filters( 'nav_menu_item_attributes', $li_atts, $menu_item, $args, $depth );
212           $li_attributes = $this->build_atts( $li_atts );
213
214           $output .= $indent . '<li' . $li_attributes . '>';
215
216           /** This filter is documented in wp-includes/post-template.php */
217           $title = apply_filters( 'the_title', $menu_item->title, $menu_item->ID );
218
219           // Save filtered value before filtering again.
220           $the_title_filtered = $title;
221
222           /**
223            * Filters a menu item's title.
224            *
225            * @since 4.4.0
226            *