true, 'auto_fix_enabled' => false, // Pro feature only 'widget_enabled' => true, // Primary setting name 'frontend_widget_enabled' => true, // Legacy/backward compatibility 'widget_position' => 'bottom-right', 'widget_style' => 'modern', 'compliance_level' => 'wcag_2_1_aa', 'scan_schedule' => 'daily', 'max_files_per_scan' => $is_pro ? 999 : 10, // Basic: 10 pages/day, Pro: unlimited 'max_sites' => $is_pro ? (function_exists('ability_is_enterprise') && ability_is_enterprise() ? 10 : 3) : 1, // Basic: 1, Pro: 3, Enterprise: 10 'exclude_paths' => [], 'report_email' => get_option('admin_email'), 'show_branding' => !$is_pro, // Basic: required, Pro: optional 'compliance_reports' => false, // Pro feature only 'api_access' => false, // Enterprise only ]; } /** * Get settings. */ public static function get_settings(): array { $defaults = self::get_defaults(); $settings = get_option('ability_settings', []); return wp_parse_args($settings, $defaults); } /** * Update settings. */ public static function update_settings(array $settings): bool { $defaults = self::get_defaults(); $merged = wp_parse_args($settings, $defaults); return update_option('ability_settings', $merged); } }