Performs the post_type and taxonomy queries for loading available menu items.
public load_available_items_query ( string $type = 'post_type', string $object = 'page', integer $page ) : WP_Error | array | ||
$type | string | Optional. Accepts any custom object type and has built-in support for 'post_type' and 'taxonomy'. Default is 'post_type'. |
$object | string | Optional. Accepts any registered taxonomy or post type name. Default is 'page'. |
$page | integer | Optional. The page number used to generate the query offset. Default is '0'. |
return | WP_Error | array | Returns either a WP_Error object or an array of menu items. |