wp_unregister_font_collection

The timeline below displays how wordpress function wp_unregister_font_collection has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Unregisters a font collection from the Font Library.
 *
 * @since 6.5.0
 *
 * @param string $slug Font collection slug.
 * @return bool True if the font collection was unregistered successfully, else false.
 */
function wp_unregister_font_collection(string $slug)
{
    return WP_Font_Library::get_instance()->unregister_font_collection($slug);
}