R2 Cloud Storage offloads your WordPress Media Library to
Cloudflare R2 — an S3-compatible object storage with
zero egress fees.
Why Cloudflare R2?
- $0 egress fees — No cost for serving files, unlike AWS S3 ($0.09/GB)
- S3-compatible API — Works with existing tools
- Cloudflare CDN integration — Custom domains with global edge caching
- Pay only for storage: $0.015/GB/month
Core Features (Free)
- Automatic media offload on upload
- URL rewriting (serve from R2/custom domain)
- Pre-signed URLs for protected content
- Bulk sync/migration tool
- Responsive image (srcset) support
- Remove local copies to save disk space
- REST API for programmatic access
- i18n ready (pt_BR included)
Modular Add-on System
Extend R2 Cloud Storage with platform-specific add-ons:
- WooCommerce — Digital downloads via R2, product images, signed URLs per order
- LearnDash — Course videos and materials with signed URL protection
- Tutor LMS — Protected video streaming and course materials
- Easy Digital Downloads — Secure digital delivery via R2
- MemberPress — Protected member content via R2
- BuddyBoss — Community uploads stored on R2
Developer Friendly
```php
// Register your own add-on
add_action( 'r2cs_register_addon', function( $manager ) {
$manager->register( 'my-addon', '1.0.0', 'My_Addon_Class' );
});
// Generate signed URLs
$url = r2cs()->signed_url()->generate( 'path/to/file.pdf', 3600 );
// Upload files programmatically
$result = r2cs()->client()->upload_file( '/local/path.pdf', 'remote/path.pdf' );
```