W3cubDocs

/WordPress

wp_unregister_font_collection( string $slug ): bool

Unregisters a font collection from the Font Library.

Parameters

$slugstringrequired
Font collection slug.

Return

bool True if the font collection was unregistered successfully, else false.

Source

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

Changelog

Version Description
6.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_unregister_font_collection