pre_wp_setup_nav_menu_item

pre_wp_setup_nav_menu_item

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_wp_setup_nav_menu_item') is found 1 times:

  • /wp-includes/nav-menu.php line 858
    	 *
    	 * @param object|null $modified_menu_item Modified menu item. Default null.
    	 * @param object      $menu_item          The menu item to modify.
    	 */
    	$pre_menu_item = apply_filters( 'pre_wp_setup_nav_menu_item', null, $menu_item );
    
    	if ( null !== $pre_menu_item ) {
    		return $pre_menu_item;
    	}
    
    	if ( isset( $menu_item->post_type ) ) {