devgeniem / wp-stateless-bucket-link-filter
Enables filtering WP Stateless bucket link via a PHP constant.
Installs: 25 929
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 31
Forks: 0
Open Issues: 0
Type:wordpress-muplugin
This package is auto-updated.
Last update: 2024-10-29 05:10:36 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' );