WP_REST_Font_Faces_Controller::get_items()
Retrieves a collection of font faces within the parent font family.
Method of the class: WP_REST_Font_Faces_Controller{}
No Hooks.
Return
WP_REST_Response|WP_Error
. Response object on success, or WP_Error object on failure.
Usage
$WP_REST_Font_Faces_Controller = new WP_REST_Font_Faces_Controller(); $WP_REST_Font_Faces_Controller->get_items( $request );
- $request(WP_REST_Request) (required)
- Full details about the request.
Changelog
Since 6.5.0 | Introduced. |
WP_REST_Font_Faces_Controller::get_items() WP REST Font Faces Controller::get items code WP 6.6.2
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 ); }