[wordpress插件] Convert Media to EDD将媒体转换为EDD

wordpress 插件 文章 2020-04-02 00:30 485 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This addon depends on Easy Digital Downloads, so It must be installed first before installing this addon.

此附加组件取决于Easy Digital Downloads,因此在安装此附加组件之前必须先安装它。

This addons enables the admin to select the images from media library which should be converted into EDD downloads.

该插件使管理员可以从媒体库中选择应转换为EDD下载的图像。

The addon offers more options to associate with the EDD downloads.

该插件提供了更多与EDD下载关联的选项。

A new menu is created after install by the name Convert Media to EDD

安装后会创建一个新菜单,名称为将媒体转换为EDD

Plugin menu page has following fields:

插件菜单页面具有以下字段:

    • Description (full wysiwyg editor)
    • 说明(所见即所得的完整编辑器)

    • Download categories
    • 下载类别

    • Price
    • 价格

    • Download Limit
    • 下载限制

    • Download notes
    • 下载笔记

    These fields are self explanatory and all fields are optional except the Media attachment field, which is required.

    这些字段不言自明,除“媒体附件”字段是必填项外,所有字段都是可选的。

    There are two buttons on the plugin page execute and reset

    插件页面上有两个按钮,执行和重置

    Execute

    执行

    Once clicked, it will send request to execute cron job immediately.

    单击后,它将立即发送请求以执行cron作业。

    Any errors before processing cron job (invalid nonce) will be displayed on top of the page as notice.

    处理cron作业之前的任何错误(无效的nonce)将作为通知显示在页面顶部。

    After Cron successfully executed, the updated job status will be displayed on top of the page as notice.

    成功执行Cron后,更新的作业状态将显示在页面顶部,作为通知。

    Reset

    重置

    This button is important when you want to run the cron job again and clear out the previous pending/completed job.

    当您要再次运行cron作业并清除先前的挂起/已完成的作业时,此按钮很重要。

    The reset button will only be clickable when any previous job was scheduled.

    只有计划了任何先前的作业时,重置按钮才可以单击。

    When you Reset the previous job, it’s status entries (total/processed/status) will be removed (not the downloads that’s been created), which is used to track running job.

    重置上一个作业时,其状态条目(总计/已处理/状态)将被删除(而不是已创建的下载文件),用于跟踪正在运行的作业。

    This allows to schedule new job when clicked on Execute

    单击执行
    可以安排新作业

    Note: When you Execute after Reset, the previous download posts will be preserved and the next Execute will just create new downloads.

    注意:重置后执行时,将保留以前的下载帖子,而下次执行时将仅创建新下载。

    Polling

    投票

    On Frontend ajax polls every 2 seconds to find out the job status and update message on top of the page.

    在前端,ajax每2秒轮询一次,以查找作业状态并更新页面顶部的消息。

    Polling will only runs when job is running.

    轮询仅在作业运行时运行。

    Cron Job

    Cron Job

    The job runs immediately on successful request from frontend.

    作业在前端成功请求后立即运行。

    The job keep track of the following field/values to resume or notify job status in frontend.

    作业跟踪以下字段/值,以恢复或通知前端的作业状态。

    Status: completed/progress

    状态:已完成/正在进行

    Processed: number of images has been processed

    已处理:已处理的图像数量

    Remaining: number of images remains to be processed

    剩余:需要处理的图像数量

    Total: total number of media library image items (jpg,png,gif)

    总数:媒体库图像项的总数(jpg,png,gif)

    The processed field is main key here to remember.

    这里要记住的是已处理字段。

    As this required for resume and next batch of images to process.

    这是恢复和下一批图像处理所必需的。

    The cron executes first 10 images from the media library and then pause for 1 second.

    cron首先从媒体库执行10张图像,然后暂停1秒。

    (This prevents load on server) and the processed field is updated with image offset i.e. from 0 to 10. So on next iteration it will remember where to continueesume from.

    (这可以防止服务器上的负载),并且处理后的字段会使用图片偏移量(即从0到10)进行更新。因此,在下一次迭代时,它会记住从哪里继续/恢复。

    Note: When site admin upload images to media library while job is running, it will update the total count the images on Media library and processed the new uploaded images as well.

    注意:当站点管理员在作业运行时将图像上传到媒体库时,它将更新媒体库中图像的总数并处理新上传的图像。

    If no images are found on given (total number of processed) offset, it will be assumed that the job is completed, because there are no more images found for further operation.

    如果在给定的(已处理的总数)偏移量下未找到图像,则将假定作业已完成,因为找不到更多图像可用于进一步操作。

    (Status will be updated on frontend)

    (状态将在前端更新)

    Logs

    日志

      • Log file is located in wp-content/cmedd_cron/cmedd.log
      • 日志文件位于wp-content / cmedd_cron / cmedd.log

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

For an automatic installation through WordPress:

通过WordPress自动安装:

Go to the ‘Add New’ plugins screen in your WordPress admin area

转到WordPress管理区域中的“添加新”插件屏幕

Search for ‘Convert Media EDD’

搜索“转换媒体EDD”

Click ‘Install Now’ and activate the plugin

点击“立即安装”并激活插件

‘Convert Media to EDD’ admin menu will show up in dashboard.

控制台中会显示“将媒体转换为EDD”管理菜单。

For a manual installation via FTP:

对于通过FTP进行手动安装:

Upload the ‘Convert Media to EDD’ directory to the ‘/wp-content/plugins/’ directory

将“将媒体转换为EDD”目录上载到“ / wp-content / plugins /”目录

Activate the plugin through the ‘Plugins’ screen in your WordPress admin area

通过WordPress管理区域中的“插件”屏幕激活插件

‘Convert Media to EDD’ admin menu will show up in dashboard.

控制台中会显示“将媒体转换为EDD”管理菜单。

To upload the plugin through WordPress, instead of FTP:

要通过WordPress而不是FTP上传插件,

Upload the downloaded zip file on the ‘Add New’ plugins screen (see the ‘Upload’ tab) in your WordPress admin area and activate.

在WordPress管理区域的“添加新”插件屏幕(请参见“上传”标签)上上传下载的zip文件并激活。

Activate the plugin through the ‘Plugins’ screen in your WordPress admin area

通过WordPress管理区域中的“插件”屏幕激活插件

‘Convert Media to EDD’ admin menu will show up in dashboard.

控制台中会显示“将媒体转换为EDD”管理菜单。

Note: EDD Plugin must be installed first.

注意:必须先安装EDD插件。

下载地址
https://downloads.wordpress.org/plugin/convert-media-to-edd.zip
-EOF-

AI助手支持GPT4.0