plugin = $plugin; } public function register(): void { // v3.3.13 — Findings management + audit status polling + reset. $hooks = [ 'aetos_seo_mark_finding' => 'ajax_mark_finding', 'aetos_seo_get_finding' => 'ajax_get_finding', 'aetos_seo_audit_status' => 'ajax_audit_status', 'aetos_seo_reset_data' => 'ajax_reset_data', ]; foreach ($hooks as $action => $method) { if (method_exists($this->plugin, $method)) { add_action('wp_ajax_' . $action, [$this->plugin, $method]); } } } }