wp_unregister_font_collection()
Unregisters a font collection from the Font Library.
No Hooks.
Returns
true|false. True if the font collection was unregistered successfully, else false.
Usage
wp_unregister_font_collection( $slug );
- $slug(string) (required)
- Font collection slug.
Changelog
| Since 6.5.0 | Introduced. |
wp_unregister_font_collection() wp unregister font collection code WP 6.9.1
function wp_unregister_font_collection( string $slug ) {
return WP_Font_Library::get_instance()->unregister_font_collection( $slug );
}