WPDev.one
Core Class

WP_REST_Font_Families_Controller

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

Font Families Controller class.

Methods 16 methods

Method / Return Description
get_items_permissions_check()
(true

Checks if a given request has access to font families.

Parameters: $request: mixed
get_item_permissions_check()
(true

Checks if a given request has access to a font family.

Parameters: $request: mixed
validate_font_family_settings()
(true

Validates settings when creating or updating a font family.

Parameters: $value: mixed, $request: mixed
sanitize_font_family_settings()
array

Sanitizes the font family settings when creating or updating a font family.

Parameters: $value: mixed
create_item()
(WP_REST_Response

Creates a single font family.

Parameters: $request: mixed
delete_item()
(WP_REST_Response

Deletes a single font family.

Parameters: $request: mixed
prepare_item_for_response()
WP_REST_Response

Prepares a single font family output for response.

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

Retrieves the post's schema, conforming to JSON Schema.

get_public_item_schema()
array

Retrieves the item's schema for display / public consumption purposes.

get_collection_params()
array

Retrieves the query params for the font family collection.

get_endpoint_args_for_item_schema()
array

Get the arguments used when creating or updating a font family.

Parameters: $method: mixed
get_font_face_ids()
int[]

Get the child font face post IDs.

Parameters: $font_family_id: mixed
prepare_links()
array

Prepares font family links for the request.

Parameters: $post: mixed
prepare_font_face_links()
array

Prepares child font face links for the request.

Parameters: $font_family_id: mixed
prepare_item_for_database()
(stdClass

Prepares a single font family post for create or update.

Parameters: $request: mixed
get_settings_from_post()
array

Gets the font family's settings from the post.

Parameters: $post: mixed

Properties

Property / Type Description
$allow_batch
mixed
public
No description available.

Class Information

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