[wordpress插件] Add File Version (AFV)添加文件版本(AFV)

wordpress 插件 文章 2020-01-30 04:40 539 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

Add File Version (AFV) can automatically or manually add file version to the CSS/JS files that were added using wp_enqueue_style and wp_enqueue_script, admin_enqueue_style and admin_enqueue_script.

添加文件版本(AFV)可以自动或手动将文件版本添加到使用wp_enqueue_style和wp_enqueue_script,admin_enqueue_style和admin_enqueue_script添加的CSS / JS文件中。

The AUTO mode adds file version based on PHP file modification time, while the MANUAL mode adds version based on your input to the target files (CSS/JS).

“自动”模式根据PHP文件的修改时间添加文件版本,而“手动”模式根据输入的内容向目标文件(CSS / JS)添加版本。

安装步骤

Installation method 1 (easy way)

安装方法1(简便方法)

    1. Go to WordPress dashboard
    2. 转到WordPress仪表板

    3. Click on Plugins > Add Plugin
    4. 点击插件>添加插件

    5. Search for Add File Version (AFV)
    6. 搜索添加文件版本(AFV)

    7. Then click on Install, then click ‘Activate Now’
    8. 然后单击“安装”,然后单击“立即激活”

    Installation method 2 (manual)

    安装方法2(手动)

      1. Go to WordPress dashboard
      2. 转到WordPress仪表板

      3. Click on Plugins > Add Plugin
      4. 点击插件>添加插件

      5. Search for Add File Version (AFV)
      6. 搜索添加文件版本(AFV)

      7. Click ‘Upload Plugin’ button
      8. 点击“上传插件”按钮

      9. Upload ‘add-file-version.zip’
      10. 上传“ add-file-version.zip”

      11. Activate the plugin
      12. 激活插件

      Installation method 3 (manual)

      安装方法3(手动)

        1. Upload ‘add-file-version.zip’ to the ‘/wp-content/plugins/’ directory
        2. 将“ add-file-version.zip”上传到“ / wp-content / plugins /”目录

        3. Extract the ‘add-file-version.zip’ archive into the ‘/wp-content/plugins/’ directory
        4. 将“ add-file-version.zip”归档文件提取到“ / wp-content / plugins /”目录中

        5. Activate the plugin through the ‘Plugins’ menu in WordPress
        6. 通过WordPress中的“插件”菜单激活插件

        Usage

        用法

        Install the ‘Add File Version (AFV)’ plugin and activate it.

        安装“添加文件版本(AFV)”插件并激活它。

        Upon activation, AFV by default will add version in AUTO mode to ALL CSS and JS files added using wp_enqueue_style and wp_enqueue_script, admin_enqueue_style and admin_enqueue_script.

        激活后,默认情况下,AFV将在AUTO模式下将版本添加到使用wp_enqueue_style和wp_enqueue_script,admin_enqueue_style和admin_enqueue_script添加的所有CSS和JS文件中。

        The plugin provides a page where you can change and alter its settings.

        该插件提供了一个页面,您可以在其中更改和更改其设置。

        It can be found at the WordPress dashboard > Tools > Add File Version.

        可以在WordPress信息中心>工具>添加文件版本中找到它。

        There are 2 modes available, AUTO and MANUAL.

        有2种可用模式,自动和手动。

        The AUTO mode adds file version based on PHP file modification time, while the MANUAL mode adds version based on your input to the target files (CSS/JS).

        AUTO模式根据PHP文件的修改时间添加文件版本,而MANUAL模式则根据您对目标文件(CSS / JS)的输入添加版本。

        Each versioning mode allows you to select files to add version.

        每种版本控制模式都允许您选择要添加版本的文件。

        It can be ALL, CSS only or JS only.

        它可以是ALL,仅CSS或仅JS。

        To disable the versioning function of the plugin, just uncheck both modes and save the changes by clicking the button at the bottom.

        要禁用插件的版本控制功能,只需取消选中这两种模式,然后单击底部的按钮来保存更改。

下载地址

https://downloads.wordpress.org/plugin/add-file-version-afv.1.0.6.zip

https://downloads.wordpress.org/plugin/add-file-version-afv.1.0.6.zip

-EOF-

AI助手支持GPT4.0