plugin = $plugin; } public function register(): void { // v3.3.11 — the admin-post surface is the audit lifecycle: resume, // single audit, full-site audit, and the combined crawl+audit. $hooks = [ 'aetos_seo_resume_scan' => 'handle_resume_scan', 'aetos_seo_run_audit' => 'handle_run_audit', 'aetos_seo_run_full_scan' => 'handle_run_full_scan', 'aetos_seo_run_combined' => 'handle_run_combined', ]; foreach ($hooks as $action => $method) { if (method_exists($this->plugin, $method)) { add_action('admin_post_' . $action, [$this->plugin, $method]); } } } }