devgeniem/wp-stateless-bucket-link-filter

Enables filtering WP Stateless bucket link via a PHP constant.

1.2.0 2022-10-31 16:43 UTC

This package is auto-updated.

Last update: 2024-01-29 03:01:15 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' );