wp_unregister_font_collection()WP 6.5.0

Unregisters a font collection from the Font Library.

Хуков нет.

Возвращает

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

Использование

wp_unregister_font_collection( $slug );
$slug(строка) (обязательный)
Font collection slug.

Список изменений

С версии 6.5.0 Введена.

Код wp_unregister_font_collection() WP 6.7.1

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