WP_Ability::get_labelpublicWP 6.9.0

Retrieves the human-readable label for the ability.

Method of the class: WP_Ability{}

No Hooks.

Returns

String. The human-readable ability label.

Usage

$WP_Ability = new WP_Ability();
$WP_Ability->get_label(): string;

Changelog

Since 6.9.0 Introduced.

WP_Ability::get_label() code WP 6.9

public function get_label(): string {
	return $this->label;
}