WP_Abilities_Registry::is_registered( string $name ): bool

Checks if an ability is registered.

Description

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

See also

Parameters

$namestringrequired
The name of the registered ability, with its namespace.

Return

bool True if the ability is registered, false otherwise.

Source

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

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

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