Core Class
View Source on Trac ↗
Core Class
WP_Font_Collection
class WP_Font_Collection
// Constructor: function Object() { [native code] } Font Collection class.
Methods 7 methods
| Method / Return | Description |
|---|---|
| __construct() void | WP_Font_Collection constructor.
Parameters: $slug: string, $args: array |
| get_data() (array | Retrieves the font collection data. |
| load_from_json() (array | Loads font collection data from a JSON file or URL.
Parameters: $file_or_url: mixed |
| load_from_file() (array | Loads the font collection data from a JSON file path.
Parameters: $file: mixed |
| load_from_url() (array | Loads the font collection data from a JSON file URL.
Parameters: $url: mixed |
| sanitize_and_validate_data() (array | Sanitizes and validates the font collection data.
Parameters: $data: mixed, $required_properties: mixed |
| get_sanitization_schema() array | Retrieves the font collection sanitization schema. |
Properties
| Property / Type | Description |
|---|---|
| $slug mixed public | No description available. |
| $data mixed public | No description available. |
| $src mixed public | No description available. |
Class Information
Since Version
6.5.0
Source File
wp-includes/fonts/class-wp-font-collection.php
Advertisement