WP_Font_Library::is_collection_registered( string $slug ): bool

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Checks if a font collection is registered.

Parameters

$slugstringrequired
Font collection slug.

Return

bool True if the font collection is registered and false otherwise.

Source

private function is_collection_registered( string $slug ) {
	return array_key_exists( $slug, $this->collections );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.