'ids' ] ); foreach ( $site_ids as $site_id ) { switch_to_blog( (int) $site_id ); self::activate_single_site(); restore_current_blog(); } return; } self::activate_single_site(); } private static function activate_single_site(): void { // Seed default options only on first install — never overwrite existing values. add_option( 'adbot_settings', [ 'exclude_admins' => true, 'debug_mode' => false, ] ); // Consent gate for outbound requests (defaults to false, user opts in via UI). add_option( \Adbot\Consent::OPTION, false ); // Mark the installed version. update_option( 'adbot_version', ADBOT_VERSION ); // Send the next admin request to the Adbot screen so the welcome wizard can load first. set_transient( 'adbot_activation_redirect', '1', 120 ); } }