WP_REST_Font_Faces_Controller::get_public_item_schema
Retrieves the item's schema for display / public consumption purposes.
Метод класса: WP_REST_Font_Faces_Controller{}
Хуков нет.
Возвращает
Массив. Public item schema data.
Использование
$WP_REST_Font_Faces_Controller = new WP_REST_Font_Faces_Controller(); $WP_REST_Font_Faces_Controller->get_public_item_schema();
Список изменений
| С версии 6.5.0 | Введена. |
Код WP_REST_Font_Faces_Controller::get_public_item_schema() WP REST Font Faces Controller::get public item schema WP 6.9
public function get_public_item_schema() {
$schema = parent::get_public_item_schema();
// Also remove `arg_options' from child font_family_settings properties, since the parent
// controller only handles the top level properties.
foreach ( $schema['properties']['font_face_settings']['properties'] as &$property ) {
unset( $property['arg_options'] );
}
return $schema;
}