wp_unregister_font_collection()WP 6.5.0

Unregisters a font collection from the Font Library.

No Hooks.

Return

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() code WP 6.5.4

function wp_unregister_font_collection( string $slug ) {
	return WP_Font_Library::get_instance()->unregister_font_collection( $slug );
}