'ids', 'number' => 0 ) ); foreach ( $site_ids as $site_id ) { switch_to_blog( (int) $site_id ); self::activate_site(); restore_current_blog(); } return; } self::activate_site(); } /** * Per-site activation work. */ private static function activate_site(): void { Schema::install(); Uploads::ensure(); ( new \Agentyllo\Admin\Settings\SettingsStore( new \Agentyllo\Admin\Settings\SettingsSchema(), new \Agentyllo\Infra\Options() ) )->seed(); if ( false === get_option( 'agyl_installed_at', false ) ) { add_option( 'agyl_installed_at', time(), '', false ); } // One-time onboarding redirect flag, consumed by the admin shell. set_transient( 'agyl_activation_redirect', 1, 60 ); } }