nav_menu_attr_title

nav_menu_attr_title

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('nav_menu_attr_title') is found 3 times:

  • /wp-includes/customize/class-wp-customize-nav-menu-item-setting.php line 637
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
        $post->url = '';
    }
     
    /** This filter is documented in wp-includes/nav-menu.php */
    $post->attr_title = apply_filters( 'nav_menu_attr_title', $post->attr_title );
     
    /** This filter is documented in wp-includes/nav-menu.php */
    $post->description = apply_filters( 'nav_menu_description', wp_trim_words( $post->description, 200 ) );
     
    /** This filter is documented in wp-includes/nav-menu.php */
    $post = apply_filters( 'wp_setup_nav_menu_item', $post );
  • /wp-includes/nav-menu.php line 969
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    * @since 3.0.0
     *
     * @param string $item_title The menu item title attribute.
     */
    $menu_item->attr_title = ! isset( $menu_item->attr_title ) ? apply_filters( 'nav_menu_attr_title', $menu_item->post_excerpt ) : $menu_item->attr_title;
     
    if ( ! isset( $menu_item->description ) ) {
        /**
         * Filters a navigation menu item's description.
         *
         * @since 3.0.0
  • /wp-includes/nav-menu.php line 1004
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
        $menu_item->url    = get_permalink( $menu_item->ID );
        $menu_item->target = '';
     
        /** This filter is documented in wp-includes/nav-menu.php */
        $menu_item->attr_title = apply_filters( 'nav_menu_attr_title', '' );
     
        /** This filter is documented in wp-includes/nav-menu.php */
        $menu_item->description = apply_filters( 'nav_menu_description', '' );
        $menu_item->classes     = array();
        $menu_item->xfn         = '';
    }