__('Permission denied', 'allaccessible')));
}
update_option('aacb_wizard_completed', true);
wp_send_json_success();
}
/**
* AJAX handler for skipping wizard
*/
public function ajax_skip_wizard() {
check_ajax_referer('aacb_wizard_nonce', 'nonce');
if (!current_user_can('manage_options')) {
wp_send_json_error();
}
update_option('aacb_wizard_completed', true);
wp_send_json_success();
}
}
// Initialize onboarding wizard after WordPress is fully loaded
add_action('plugins_loaded', function() {
AllAccessible_OnboardingWizard::get_instance();
});