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.
Source
public function is_registered( string $name ): bool {
return isset( $this->registered_abilities[ $name ] );
}
Changelog
| Version | Description |
|---|---|
| 6.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.