Registers a new font collection in the font library.
See https://schemas.wp.org/trunk/font-collection.json for the schema the font collection data must adhere to.
$slugstringrequired
$argsarrayrequired
name stringdescription stringfont_families array|stringcategories arrayfunction wp_register_font_collection( string $slug, array $args ) {
return WP_Font_Library::get_instance()->register_font_collection( $slug, $args );
}
| Version | Description |
|---|---|
| 6.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_register_font_collection