WP_Customize_Nav_Menus::load_available_items_query

SummerySummery

Performs the post_type and taxonomy queries for loading available menu items.

Syntax

WP_Customize_Nav_Menus::load_available_items_query( string $type = 'post_type', string $object = 'page', int $page )

ParametersParameters

$type

(string) (Optional) Accepts any custom object type and has built-in support for 'post_type' and 'taxonomy'. Default is 'post_type'.

Default value: 'post_type'

$object

(string) (Optional) Accepts any registered taxonomy or post type name. Default is 'page'.

Default value: 'page'

$page

(int) (Optional) The page number used to generate the query offset. Default is '0'.

ReturnReturn

(array|WP_Error) An array of menu items on success, a WP_Error object on failure.

SourceSource

File: wp-includes/class-wp-customize-nav-menus.php


			

ChangelogChangelog

Changelog
Version Description
4.3.0 Introduced.
Scroll to Top