AI助手支持GPT4.0
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文件时,版本号都会更新。 p>
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,
“> wp_enqueue_style
"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 。 p>
autover.zip
/wp-content/plugins/
autover.zip code>上载到 / wp-content / plugins / code>目录; li>Extract the autover.zip archive into the /wp-content/plugins/ directory;将 autover.zip code>存档提取到 / wp-content / plugins / code>目录中; li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>
/ wp-content / plugins / code>目录; li>Extract the autover.zip archive into the /wp-content/plugins/ directory;将 autover.zip code>存档提取到 / wp-content / plugins / code>目录中; li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>
autover.zip code>存档提取到 / wp-content / plugins / code>目录中; li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>
/ wp-content / plugins / code>目录中; li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>
ol>
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.
然后单击“安装”,然后单击“立即激活”。 p>
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 函数)。 p>
Depending on the caching mechanism used, a purge of page (html) cache might be needed.
根据使用的缓存机制,可能需要清除页面(html)缓存。 p>
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。 p>
原文出处:http://www.sanshu.cn/a/3455.html
群主管理都是支付大佬