WPDev.one
Core Class

WP_REST_Font_Collections_Controller

class WP_REST_Font_Collections_Controller // Constructor: function Object() { [native code] }

Font Library Controller class.

Methods 9 methods

Method / Return Description
__construct()
void

Constructor.

register_routes()
void

Registers the routes for the objects of the controller.

get_items()
(WP_REST_Response

Gets the font collections available.

Parameters: $request: mixed
get_item()
(WP_REST_Response

Gets a font collection.

Parameters: $request: mixed
prepare_item_for_response()
(WP_REST_Response

Prepare a single collection output for response.

Parameters: $item: mixed, $request: mixed
get_item_schema()
array

Retrieves the font collection's schema, conforming to JSON Schema.

prepare_links()
array

Prepares links for the request.

Parameters: $collection: mixed
get_collection_params()
array

Retrieves the search params for the font collections.

get_items_permissions_check()
(true

Checks whether the user has permissions to use the Fonts Collections.

Parameters: $request: mixed

Class Information

Since Version
6.5.0
Source File
wp-includes/rest-api/endpoints/class-wp-rest-font-collections-controller.php
Advertisement