WP_Ability_Categories_Registry::is_registered( string $slug ): bool

Checks if an ability category is registered.

Description

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

See also

Parameters

$slugstringrequired
The slug of the ability category.

Return

bool True if the ability category is registered, false otherwise.

Source

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

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

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