nav_menu_item_title

nav_menu_item_title

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('nav_menu_item_title') is found 1 times:

  • /wp-includes/class-walker-nav-menu.php line 232
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    * @param WP_Post  $menu_item The current menu item object.
     * @param stdClass $args      An object of wp_nav_menu() arguments.
     * @param int      $depth     Depth of menu item. Used for padding.
     */
    $title = apply_filters( 'nav_menu_item_title', $title, $menu_item, $args, $depth );
     
    $atts           = array();
    $atts['target'] = ! empty( $menu_item->target ) ? $menu_item->target : '';
    $atts['rel']    = ! empty( $menu_item->xfn ) ? $menu_item->xfn : '';
     
    if ( ! empty( $menu_item->url ) ) {