devgeniem / wp-stateless-bucket-link-filter
Enables filtering WP Stateless bucket link via a PHP constant.
Package info
github.com/devgeniem/wp-stateless-bucket-link-filter
Type:wordpress-muplugin
pkg:composer/devgeniem/wp-stateless-bucket-link-filter
1.2.0
2022-10-31 16:43 UTC
This package is auto-updated.
Last update: 2026-03-01 00:24:07 UTC
README
WP Stateless Bucket Link Filter
This WordPress mu-plugin enables filtering the Google Storage bucket link in the WP Stateless Media Plugin with a PHP constant.
Installation
Install with composer:
$ composer require devgeniem/wp-stateless-bucket-link-filter
Usage
WP_STATELESS_BUCKET_LINK_REPLACE
The bucket link in WP Stateless Media Plugin replaces all upload urls. Define this constant to replace the default bucket link https://storage.googleapis.com/{bucket-name}/.
Example:
// This will set the bucket link point to 'https://my-test-site.test/uploads/'
define( 'WP_STATELESS_BUCKET_LINK_REPLACE', 'https://my-test-site.test/uploads' );
