[WordPress] 外掛分享: Autover

首頁外掛目錄 › Autover
WordPress 外掛 Autover 的封面圖片
700+
安裝啟用
★★★★★
5/5 分(7 則評價)
104 天前
最後更新
問題解決
WordPress 4.7+ v1.7 上架:2013-03-13

內容簡介

Autover 外掛可以自動為您的 CSS 和 JS 檔案進行版本控制。當使用內容分發網路 (CDN) 傳送靜態檔案,例如 CSS 和 JavaScript 時,這非常有用。這款外掛會在資源 URL 後附加由 filemtime() PHP 函式產生的數字版本號 (例如 style.css?ver=1359464809)。這表示每當 CSS 或 JS 檔案被儲存時,版本號都會更新。

重要提示: 本外掛僅適用於使用標準 WordPress 函式 wp_enqueue_style 和 wp_enqueue_script 和/或 admin_enqueue_style、admin_enqueue_script 的 CSS 和 JS 檔案。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 and wp_enqueue_script and/or admin_enqueue_style, admin_enqueue_script.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon