ACF\Site_Health
AI_Usage::init
Initializes the class on init if the ACF Abilities API is available.
Method of the class: AI_Usage{}
No Hooks.
Returns
null. Nothing (null).
Usage
$AI_Usage = new AI_Usage(); $AI_Usage->init();
Changelog
| Since 6.8.0 | Introduced. |
AI_Usage::init() AI Usage::init code ACF 6.8.8
public function init() {
// Only hook if AI is enabled and Abilities API exists.
if ( ! $this->is_acf_abilities_api_available() ) {
return;
}
// Execution logging - hook after ability execution.
add_action( 'wp_after_execute_ability', array( $this, 'log_execution' ), 10, 3 );
}