Core Class
View Source on Trac ↗
Core Class
WP_Font_Library
class WP_Font_Library
// Constructor: function Object() { [native code] } Font Library class.
Methods 6 methods
| Method / Return | Description |
|---|---|
| register_font_collection() (WP_Font_Collection | Register a new font collection.
Parameters: $slug: string, $args: array |
| unregister_font_collection() bool | Unregisters a previously registered font collection.
Parameters: $slug: string |
| is_collection_registered() bool | Checks if a font collection is registered.
Parameters: $slug: string |
| get_font_collections() array | Gets all the font collections available. |
| get_font_collection() (WP_Font_Collection | Gets a font collection.
Parameters: $slug: string |
| get_instance() WP_Font_Library | Utility method to retrieve the main instance of the class. |
Properties
| Property / Type | Description |
|---|---|
| $collections mixed public | No description available. |
| $instance mixed public | No description available. |
Class Information
Since Version
6.5.0
Source File
wp-includes/fonts/class-wp-font-library.php
Advertisement