Title: wp_unregister_font_collection
Published: April 3, 2024
Last modified: February 24, 2026

---

# wp_unregister_font_collection( string $slug ): bool

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#wp--skip-link--target)

Unregisters a font collection from the Font Library.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#parameters)󠁿

 `$slug`stringrequired

Font collection slug.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#return)󠁿

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

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/fonts.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/fonts.php#L108)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/fonts.php#L108-L110)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Font_Library::get_instance()](https://developer.wordpress.org/reference/classes/wp_font_library/get_instance/)`wp-includes/fonts/class-wp-font-library.php` |

Utility method to retrieve the main instance of the class.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_unregister_font_collection/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.5.0](https://developer.wordpress.org/reference/since/6.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_unregister_font_collection%2F)
before being able to contribute a note or feedback.