devgeniem/wp-stateless-bucket-link-filter

Enables filtering WP Stateless bucket link via a PHP constant.

Installs: 27 950

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 30

Forks: 0

Open Issues: 0

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: 2025-09-29 01:44:05 UTC


README

geniem-github-banner

WP Stateless Bucket Link Filter

Latest Stable Version Total Downloads Latest Unstable Version License

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' );