WP_REST_Font_Faces_Controller::get_items( WP_REST_Request $request ): WP_REST_Response|WP_Error

In this article

Retrieves a collection of font faces within the parent font family.

Parameters

$requestWP_REST_Requestrequired
Full details about the request.

Return

WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.

Source

public function get_items( $request ) {
	$font_family = $this->get_parent_font_family_post( $request['font_family_id'] );
	if ( is_wp_error( $font_family ) ) {
		return $font_family;
	}

	return parent::get_items( $request );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.