[wordpress插件] BE Media from Production来自生产的BE媒体

wordpress 插件 文章 2020-03-02 07:10 455 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

When redesigning a website with a large uploads directory, you might not need all those uploads in your development or staging environment, but you also don’t want to see broken images throughout the site.

在重新设计具有较大上载目录的网站时,您可能不需要开发或暂存环境中的所有这些上载,但是您也不想在整个网站上看到损坏的图像。

This plugin lets you use the production server for some or all of the media.

此插件可让您将生产服务器用于部分或全部媒体。

The simplest method (Option 1) is to use production for all media – you simply define the production URL.

最简单的方法(选项1)是对所有媒体使用生产-您只需定义生产URL。

You can also migrate over a few months of uploads, and use the production site’s URL for all other images.

您还可以迁移几个月的上载内容,并将生产站点的URL用于所有其他图像。

You can manually provide a list of directories to include (Option 2).

您可以手动提供要包含的目录列表(选项2)。

Or you can set the start month and year of the oldest upload directory you carried over, and the plugin will automatically create the list of all directories following that (Option 3).

或者,您可以设置最旧的上载目录的开始月份和年份,然后插件会自动创建该目录之后的所有目录的列表(选项3)。

This last option is useful if you’ll be creating content in your development environment, so that each month you won’t have to edit the list of local upload directories.

如果您要在开发环境中创建内容,那么最后一个选项很有用,这样您就不必每个月都必须编辑本地上传目录列表。

In all cases, if a local file exists, it will be used in preference to the remote file.

在所有情况下,如果存在本地文件,它将优先于远程文件使用。

Available Filters:

可用过滤器:

    • be_media_from_production_url – Specify the Production URL
    • be_media_from_production_url –指定生产URL

    • be_media_from_production_start_month – Specify the Start Month
    • be_media_from_production_start_month –指定开始月份

    • be_media_from_production_start_year – Specify the Start Year
    • be_media_from_production_start_year –指定开始年份

    • be_media_from_production_directories – Manually set the upload directories to use
    • be_media_from_production_directories –手动设置要使用的上传目录

安装步骤

Option 1: In your theme or core functionality plugin, specify the Production URL.

选项1:在主题或核心功能插件中,指定生产URL。

This will use the production server for ALL media.

这会将生产服务器用于所有媒体。

Example

示例

Option 2: In your theme or core functionality plugin, specify the Production URL and specific directories using the provided filters.

选项2:在主题或核心功能插件中,使用提供的过滤器指定生产URL和特定目录。

Example

示例

Option 3: In your theme or core functionality plugin, specify the Production URL, Start Month and End Month using the provided filters.

选项3:在主题或核心功能插件中,使用提供的过滤器指定“生产URL”,“开始月份”和“结束月份”。

Example

示例

下载地址
https://downloads.wordpress.org/plugin/be-media-from-production.1.4.0.zip
-EOF-

AI助手支持GPT4.0