ACF\AI\Abilities
Abilities::get_ability_group
Get an ability group instance by key
Method of the class: Abilities{}
No Hooks.
Returns
Object|null. The ability group instance or null if not found.
Usage
// private - for code of main (parent) class only $result = $this->get_ability_group( $key );
- $key(string) (required)
- The ability group key.
Changelog
| Since 6.8.0 | Introduced. |
Abilities::get_ability_group() Abilities::get ability group code ACF 6.8.8
private function get_ability_group( $key ) {
return $this->ability_groups[ $key ] ?? null;
}