WP_Ability::get_name
Retrieves the name of the ability, with its namespace. Example: my-plugin/my-ability.
Method of the class: WP_Ability{}
No Hooks.
Returns
String. The ability name, with its namespace.
Usage
$WP_Ability = new WP_Ability(); $WP_Ability->get_name(): string;
Changelog
| Since 6.9.0 | Introduced. |
WP_Ability::get_name() WP Ability::get name code WP 7.0
public function get_name(): string {
return $this->name;
}