. Give the wizard a real one. */ public function filter_admin_title($admin_title, $title) { if (sanitize_key(wp_unslash($_GET['page'] ?? '')) === 'allaccessible-wizard') { /* translators: 1: page title, 2: site name */ return sprintf(__('%1$s ‹ %2$s — WordPress', 'allaccessible'), __('AllAccessible Setup', 'allaccessible'), get_bloginfo('name')); } return $admin_title; } /** * Enqueue CSS and JS for wizard page */ public function enqueue_assets($hook) { // Check if we're on the wizard page if (sanitize_key(wp_unslash($_GET['page'] ?? '')) !== 'allaccessible-wizard') { return; } // Legacy Tailwind utility stylesheet (still ships with the build) wp_enqueue_style( 'allaccessible-admin', AACB_CSS . 'admin.css', array(), AACB_VERSION ); // Admin v2 design system — single source of truth for the redesign wp_enqueue_style( 'aacx-v2-admin', AACB_CSS . 'admin-v2.css', array(), aacb_asset_ver('admin-v2.css') ); // Hide WordPress admin notices on the wizard page for a clean experience $custom_css = " .notice, .updated, .error, .update-nag, div.notice, div.updated, div.error, div.update-nag { display: none !important; } /* Soften the wp-admin chrome around the wizard */ #wpcontent { padding-left: 0 !important; } .aacx-v2-wizard-shell { min-height: calc(100vh - 32px); background: var(--aacx-bg, #f8fafc); } "; wp_add_inline_style('aacx-v2-admin', $custom_css); } /** * Render the wizard UI */ public function render_wizard() { // Remove all admin notices on wizard page for clean experience remove_all_actions('admin_notices'); remove_all_actions('all_admin_notices'); $site_url = get_bloginfo('wpurl'); $admin_email = get_bloginfo('admin_email'); // Step labels for the stepper: a single "Get started" step // (email + plan picker + Continue on one screen), then First scan. $steps = array( 1 => __('Get started', 'allaccessible'), 2 => __('First scan', 'allaccessible'), 3 => __('Accessibility statement', 'allaccessible'), ); /* translators: 1: current step number, 2: total steps */ $eyebrow = __('Step %1$d of %2$d', 'allaccessible'); ?>