devgeniem/wp-stateless-bucket-link-filter

通过PHP常量启用过滤WP Stateless bucket链接。

1.2.0 2022-10-31 16:43 UTC

This package is auto-updated.

Last update: 2024-08-29 04:37:13 UTC


README

geniem-github-banner

WP Stateless Bucket Link Filter

Latest Stable Version Total Downloads Latest Unstable Version License

这个WordPress mu-plugin 允许通过PHP常量过滤WP Stateless Media Plugin中的Google Storage bucket链接。

安装

使用composer安装

$ composer require devgeniem/wp-stateless-bucket-link-filter

用法

WP_STATELESS_BUCKET_LINK_REPLACE

在WP Stateless Media Plugin中,bucket链接会替换所有上传URL。定义此常量以替换默认的bucket链接 https://storage.googleapis.com/{bucket-name}/

示例

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