wp_register_font_collection()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
wp_register_font_collection( string $slug, array $args ): WP_Font_Collection|WP_Error
Описание
См. https://schemas.wp.org/trunk/font-collection.json для схемы, которой должны соответствовать данные коллекции шрифтов.
Оригинал (английский)
See https://schemas.wp.org/trunk/font-collection.json for the schema the font collection data must adhere to.
Параметры
$slug
string
обязательный
$args
array
обязательный
Возвращаемое значение
WP_Font_Collection|WP_Error
Исходный код
wp-includes/fonts.php:96
function wp_register_font_collection( string $slug, array $args ) {
return WP_Font_Library::get_instance()->register_font_collection( $slug, $args );
}
История изменений
| Версия | Описание |
|---|---|
| 6.5.0 | Introduced. |

