ACF\Site_Health
AI_Usage::is_acf_abilities_api_available
Checks if ACF AI and the Abilities API are enabled.
Method of the class: AI_Usage{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->is_acf_abilities_api_available(): bool;
Changelog
| Since 6.8.0 | Introduced. |
AI_Usage::is_acf_abilities_api_available() AI Usage::is acf abilities api available code ACF 6.8.8
private function is_acf_abilities_api_available(): bool {
return acf_get_setting( 'enable_acf_ai' ) && function_exists( 'wp_register_ability' );
}