R2 Cloud Storage offloads your WordPress Media Library to Cloudflare R2 — an S3-compatible object storage with zero egress fees.
Extend R2 Cloud Storage with platform-specific add-ons:
`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’ );
`
This plugin connects to external third-party services as described below.
This plugin connects to the Cloudflare R2 API to upload, retrieve, and delete media files stored in your R2 bucket. The connection is made to https://<account_id>.r2.cloudflarestorage.com using your configured credentials (Account ID, Access Key, and Secret Key).
Data is sent whenever media files are uploaded, deleted, synced, or served via the plugin. The data transmitted includes the file contents and metadata (object key/path).
This plugin connects to the R2 Cloud Storage license server at https://r2cloudstorage.com/api/v1/license to activate, deactivate, and verify add-on license keys. This connection is only made when a user manually activates or deactivates an add-on license, or when a periodic license verification is performed.
The data transmitted includes: the license key, the add-on slug, and the site domain.