ACF\Site_Health
AI_Usage::init
Initializes the class on init if the ACF Abilities API is available.
Метод класса: AI_Usage{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$AI_Usage = new AI_Usage(); $AI_Usage->init();
Список изменений
| С версии 6.8.0 | Введена. |
Код AI_Usage::init() AI Usage::init ACF 6.8.11
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 );
}