wp_setup_nav_menu_item

wp_setup_nav_menu_item

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_setup_nav_menu_item') is found 2 times:

  • /wp-includes/customize/class-wp-customize-nav-menu-item-setting.php line 643
    		/** 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 );
    
    		return $post;
    	}
    
    	/**
    	 * Sanitize an input.
    
  • /wp-includes/nav-menu.php line 1040
    	 * @since 3.0.0
    	 *
    	 * @param object $menu_item The menu item object.
    	 */
    	return apply_filters( 'wp_setup_nav_menu_item', $menu_item );
    }
    
    /**
     * Returns the menu items associated with a particular object.
     *
     * @since 3.0.0
    

See this hook used in plugins: