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

wordpress 插件 文章 2020-03-02 07:10 471 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Add Hierarchy (parent) to post将层次结构(父级)添加到发布
[wordpress插件] DF-PaginationDF分页
[wordpress插件] Better Notifications for WPWP的更好通知
[wordpress插件] Bigboss Date and years shortcodeBigboss日期和年的简码
[wordpress插件] Brozzme Lightbox Blurb Module in DiviDivi中的Brozzme灯箱模糊模块
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8102
问题? 7428
如何快速搭建抽奖助手小程序(无需代码知识) 5108
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6063
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5673
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5265
如何解决渲染层网络错误Failed to load media? 16612
小程序找号找回 释放昵称? 2463
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2541
删除部分微信用户个人数据的通知,怎么删除? 5591