WP_Abilities_Registry::get_all_registeredpublicWP 6.9.0

Retrieves the list of all registered abilities.

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

Method of the class: WP_Abilities_Registry{}

No Hooks.

Returns

WP_Ability[]. The array of registered abilities.

Usage

$WP_Abilities_Registry = new WP_Abilities_Registry();
$WP_Abilities_Registry->get_all_registered(): array;

Notes

Changelog

Since 6.9.0 Introduced.

WP_Abilities_Registry::get_all_registered() code WP 7.0

public function get_all_registered(): array {
	return $this->registered_abilities;
}