WP_Ability::get_namepublicWP 6.9.0

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() code WP 7.0

public function get_name(): string {
	return $this->name;
}