[wordpress插件] Autover奥弗

wordpress 插件 文章 2020-02-25 23:30 521 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Autover plugin will automatically version your CSS and JS files.

Autover插件将自动对CSS和JS文件进行版本控制。

This is especially useful when using a Content Distribution Network (CDN) for delivering static files like CSS and JavaScripts.

当使用内容分发网络(CDN)交付静态文件(如CSS和JavaScript)时,这特别有用。

The plugin appends to the resource URL a numeric version number generated by the filemtime() PHP function (e.g. style.css?ver=1359464809).

该插件将由filemtime()PHP函数生成的数字版本号附加到资源URL(例如style.css?ver = 1359464809)。

This means the version number will be updated every time the CSS or JS file is being saved.

这意味着每次保存CSS或JS文件时,版本号都会更新。

IMPORTANT: this plugin only works with CSS and JS files that are enqueued using the standard WordPress functions wp_enqueue_style and wp_enqueue_script and/or

“> wp_enqueue_style wp_enqueue_script 和/或

"https://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_style" rel="nofollow">admin_enqueue_style,

“ https://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_style” rel =“ nofollow”> admin_enqueue_style

rel="nofollow">admin_enqueue_script.

rel =“ nofollow”> admin_enqueue_script 。

安装步骤

Installation

安装

    1. Upload autover.zip to the /wp-content/plugins/ directory;
    2. autover.zip 上载到 / wp-content / plugins / 目录;

    3. Extract the autover.zip archive into the /wp-content/plugins/ directory;
    4. autover.zip 存档提取到 / wp-content / plugins / 目录中;

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

    Alternatively go into your WordPress dashboard and click on Plugins -> Add Plugin and search for Autover.

    或者进入WordPress仪表板,然后单击Plugins-> Add Plugin并搜索Autover。

    Then click on Install, then on Activate Now.

    然后单击“安装”,然后单击“立即激活”。

    Usage

    用法

    Just install and activate the plugin.

    只需安装并激活插件即可。

    The plugin will automatically start to version your CSS and JS files that are correctly enqueued into WordPress (by using

    插件将自动开始对已正确放入WordPress的CSS和JS文件进行版本控制(通过使用

    >wp_enqueue_style and wp_enqueue_script and/or wp_enqueue_script 和/或

    https://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_style" rel="nofollow">admin_enqueue_style,

    https://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_style“ rel =” nofollow“> admin_enqueue_style

    ="nofollow">admin_enqueue_script functions).

    =“ nofollow”> admin_enqueue_script 函数)。

    Depending on the caching mechanism used, a purge of page (html) cache might be needed.

    根据使用的缓存机制,可能需要清除页面(html)缓存。

    If you want to version only CSS or only JS files, please use the constants AUTOVER_DISABLE_JS and AUTOVER_DISABLE_CSS.

    如果仅要版本CSS或仅JS文件,请使用常量AUTOVER_DISABLE_JS和AUTOVER_DISABLE_CSS。

下载地址
https://downloads.wordpress.org/plugin/autover.zip
-EOF-

AI助手支持GPT4.0