wphooks.info - customize_nav_menu_available_item_types

customize_nav_menu_available_item_types

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-customize-nav-menus.php:
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
		}

		/**
		 * Filters the available menu item types.
		 *
		 * @since 4.3.0
		 * @since 4.7.0  Each array item now includes a `$type_label` in addition to `$title`, `$type`, and `$object`.
		 *
		 * @param array $item_types Navigation menu item types.
		 */
		$item_types = apply_filters( 'customize_nav_menu_available_item_types', $item_types );

		return $item_types;
	}

	/**
	 * Add a new `auto-draft` post.
	 *
	 * @since 4.7.0
	 *