WP_Ability_Categories_Registry::is_registeredpublicWP 6.9.0

Checks if an ability category is registered.

Do not use this method directly. Instead, use the wp_has_ability_category()

Method of the class: WP_Ability_Categories_Registry{}

No Hooks.

Returns

true|false. True if the ability category is registered, false otherwise.

Usage

$WP_Ability_Categories_Registry = new WP_Ability_Categories_Registry();
$WP_Ability_Categories_Registry->is_registered( $slug ): bool;
$slug(string) (required)
The slug of the ability category.

Notes

Changelog

Since 6.9.0 Introduced.

WP_Ability_Categories_Registry::is_registered() code WP 6.9.1

public function is_registered( string $slug ): bool {
	return isset( $this->registered_categories[ $slug ] );
}