[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Font Library class. This file contains the Font Library class definition.
File Size: | 142 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_Font_Library:: (6 methods):
register_font_collection()
unregister_font_collection()
is_collection_registered()
get_font_collections()
get_font_collection()
get_instance()
Class: WP_Font_Library - X-Ref
Font Library class.register_font_collection( string $slug, array $args ) X-Ref |
Register a new font collection. param: string $slug Font collection slug. May only contain alphanumeric characters, dashes, param: array $args Font collection data. See wp_register_font_collection() for information on accepted arguments. return: WP_Font_Collection|WP_Error A font collection if it was registered successfully, |
unregister_font_collection( string $slug ) X-Ref |
Unregisters a previously registered font collection. param: string $slug Font collection slug. return: bool True if the font collection was unregistered successfully and false otherwise. |
is_collection_registered( string $slug ) X-Ref |
Checks if a font collection is registered. param: string $slug Font collection slug. return: bool True if the font collection is registered and false otherwise. |
get_font_collections() X-Ref |
Gets all the font collections available. return: array List of font collections. |
get_font_collection( string $slug ) X-Ref |
Gets a font collection. param: string $slug Font collection slug. return: WP_Font_Collection|null Font collection object, or null if the font collection doesn't exist. |
get_instance() X-Ref |
Utility method to retrieve the main instance of the class. The instance will be created if it does not exist yet. return: WP_Font_Library The main instance. |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |