Title: Autover
Author: Presslabs
Published: <strong>2013 年 3 月 14 日</strong>
Last modified: 2026 年 5 月 20 日

---

搜索插件

![](https://ps.w.org/autover/assets/banner-772x250.png?rev=1148872)

![](https://ps.w.org/autover/assets/icon-128x128.png?rev=1610346)

# Autover

 作者：[Presslabs](https://profiles.wordpress.org/presslabs/)

[下载](https://downloads.wordpress.org/plugin/autover.zip)

 * [详情](https://cn.wordpress.org/plugins/autover/#description)
 * [评价](https://cn.wordpress.org/plugins/autover/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/autover/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/autover/#developers)

 [支持](https://wordpress.org/support/plugin/autover/)

## 描述

Autover plugin will automatically version your CSS and JS files. This is especially
useful when using a Content Distribution Network (CDN) for delivering static files
like CSS and JavaScripts. The plugin appends to the resource URL a numeric version
number generated by the filemtime() PHP function (e.g. style.css?ver=1359464809).
This means the version number will be updated every time the CSS or JS file is being
saved.

IMPORTANT: this plugin only works with CSS and JS files that are enqueued using 
the standard WordPress functions [wp_enqueue_style](https://codex.wordpress.org/Function_Reference/wp_enqueue_style)
and [wp_enqueue_script](https://codex.wordpress.org/Function_Reference/wp_enqueue_script)
and/or [admin_enqueue_style](https://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_style),
[admin_enqueue_script](https://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_scripts).

## 屏幕截图

 * [[
 * Before activation
 * [[
 * After activation

## 安装

#### Installation

 1. Upload `autover.zip` to the `/wp-content/plugins/` directory;
 2. Extract the `autover.zip` archive into the `/wp-content/plugins/` directory;
 3. 通过WordPress的“插件”菜单激活插件。

Alternatively go into your WordPress dashboard and click on Plugins -> Add Plugin
and search for Autover. Then click on Install, then on Activate Now.

#### 用法

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 [wp_enqueue_style](https://codex.wordpress.org/Function_Reference/wp_enqueue_style)
and [wp_enqueue_script](https://codex.wordpress.org/Function_Reference/wp_enqueue_script)
and/or [admin_enqueue_style](https://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_style),
[admin_enqueue_script](https://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_scripts)
functions).

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

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

## 常见问题

### Why should I use this plugin?

If you want to automatically version your CSS and JavaScript files, this will help
to load your CSS and JS file into the cache memory only when you change the code
from the files.

### What is the difference between the wp_enqueue_script and admin_enqueue_script?

The ‘admin__‘ hooks are designed for wp-admin area or so called Dashboard area, 
the ‘wp\__‘ hooks are designed for site.

## 评价

![](https://secure.gravatar.com/avatar/04baf70cd77578882d8144b456632ce4bafcc8641484cb604fb2725e0b25a8dc?
s=60&d=retro&r=g)

### 󠀁[Works beautifully!](https://wordpress.org/support/topic/works-beautifully-138/)󠁿

 [Peninah](https://profiles.wordpress.org/highlight_creative/) 2019 年 10 月 4 日
1 回复

Does just what it says! Works great with Siteground hosting when you’re trying to
update things and the caching is working against you!

![](https://secure.gravatar.com/avatar/2b8439faf05e34a2019a97889fd6ef5cb76c31f07487bcb44d815bdc9f1f8122?
s=60&d=retro&r=g)

### 󠀁[Working perfect](https://wordpress.org/support/topic/working-perfect-2/)󠁿

 [Andrei Lupu](https://profiles.wordpress.org/euthelup/) 2017 年 2 月 3 日 1 回复

Excellent plugin to lose your CDN cache without any other interaction.

![](https://secure.gravatar.com/avatar/4597a61fb837b667ed379a6d7564835be298982e4055708d5cc00925d03256e7?
s=60&d=retro&r=g)

### 󠀁[awesome](https://wordpress.org/support/topic/awesome-2278/)󠁿

 [FreeSpeech](https://profiles.wordpress.org/freepeech/) 2016 年 11 月 4 日

Thank you

![](https://secure.gravatar.com/avatar/b31331326848163f891c5aed0f9286851f1f4a7e061dee35ba549813f1da00d3?
s=60&d=retro&r=g)

### 󠀁[This is perfect works like a charm](https://wordpress.org/support/topic/this-is-perfect-works-like-a-charm/)󠁿

 [blueprintmarketing](https://profiles.wordpress.org/blueprintmarketing/) 2016 年
9 月 3 日

Like all PressLabs software, it is top shelf.

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/autover/reviews/)

## 贡献者及开发者

「Autover」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Presslabs ](https://profiles.wordpress.org/presslabs/)
 *   [ Olar Marius ](https://profiles.wordpress.org/olarmarius/)

[帮助将「Autover」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/autover)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/autover/)，查看[SVN仓库](https://plugins.svn.wordpress.org/autover/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/autover/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/autover/)。

## 更新日志

#### 1.8

 * Tested up to WP 7.0

#### 1.7

 * Tested up to WP 6.9

#### 1.6

 * Tested up to WP 6.8

#### 1.5

 * Standardised folder structure
 * Added tests for current features and improved url replacement (custom arguments
   now preserved)
 * Cleanup of code

#### 1.4

 * Cleaned up the plugin code(remove the options from DB).
 * Now the plugin uses the constants AUTOVER_DISABLE_CSS / AUTOVER_DISABLE_JS to
   see if it needs to ignore a resource.
 * Removed settings page (replaced by the constants AUTOVER_DISABLE_JS and AUTOVER_DISABLE_CSS).
 * Removed the file list.

#### 1.3

 * Add file lists.

#### 1.2

 * Enhancement: settings tab is now separated for easier understanding.
 * Enhancement: updated readme.txt file with more details and added print screens.
 * Bug fix: fixed an error at the ‘filemtime()’ function.

#### 1.1

 * Bug fix: fixed some settings error.

#### 1.0

 * First version on WP.

## 额外信息

 *  版本 **1.8**
 *  最后更新：**2 周前**
 *  活跃安装数量 **800+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/autover/)
 * 标签
 * [css](https://cn.wordpress.org/plugins/tags/css/)[javascript](https://cn.wordpress.org/plugins/tags/javascript/)
   [presslabs](https://cn.wordpress.org/plugins/tags/presslabs/)[version](https://cn.wordpress.org/plugins/tags/version/)
 *  [高级视图](https://cn.wordpress.org/plugins/autover/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/autover/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/autover/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/autover/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/autover/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/autover/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/autover/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/autover/reviews/)

## 贡献者

 *   [ Presslabs ](https://profiles.wordpress.org/presslabs/)
 *   [ Olar Marius ](https://profiles.wordpress.org/olarmarius/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/autover/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.presslabs.com/)