$args AWS SDK client constructor args from WP Offload Media. * @return array Modified args with R2 endpoint injected. * * Side effects: none — pure filter. */ public static function inject_r2_endpoint( array $args ): array { $args['endpoint'] = self::ENDPOINT; $args['use_path_style_endpoint'] = true; return $args; } }