[WordPress] 外掛分享: WP Live.php

首頁外掛目錄 › WP Live.php
WordPress 外掛 WP Live.php 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
40+
安裝啟用
★★★★★
5/5 分(5 則評價)
4446 天前
最後更新
問題解決
WordPress 2.6+ v1.6.1 上架:2011-12-09

內容簡介

這個 WordPress 外掛是為了讓主題和外掛開發者更輕鬆而寫成的。
受到 Martin Kool 所寫的優秀 live.js 腳本啟發,
這個外掛將會在你更改 wp-content/themes 或 plugins 目錄下的任何檔案時自動重整你的瀏覽器。不需要使用 Alt-Tab 鍵和手動重整了。

如果你啟用 WP Live Php 外掛,它將會為你的部落格加入一個小型的 JavaScript 檔案。
它將會每秒鐘呼叫 wp-live.php 監控你的目錄。如果任何檔案更改了
(例如有更新的 filemtime),瀏覽器就會被重新整理。

使用這個外掛,同時在多個瀏覽器中檢查你的工作也非常容易。
只需啟用前端監控,將網站在所有瀏覽器中載入,剩下的都會自動進行。

從 v1.3 開始,它提供了一個選項來啟用管理列整合,讓你可以方便地啟用或
停用 Live.php 監控,直接在前台或後台進行只要一點就好。

自 v1.5 開始有了內容更新功能,你可以自動更新你的瀏覽器,每次發佈或儲存頁面時。
我們會在上傳基本資料夾(wp-content/uploads/)中建立一個檔案,並在每次儲存時進行觸發,
這將會在用戶端瀏覽器中觸發重新整理。這個位置必須可以寫入才能正常運作。

警告!
你不應該在實際伺服器上啟用這個外掛!這只是適用於開發環境的工具!
請使用 https://wordpress.org/plugins/reload/ 替代,它是專為產品環境建立的。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Live.php」→ 直接安裝(推薦)

原文外掛簡介

This plugin was written to make WordPress theme and plugin developers’ life easier.
Inspired by the brilliant live.js script (written by Martin Kool),
this plugin will auto refresh your browser if you change any files in your wp-content/themes
or plugins directories. No need for Alt-Tab and manual refresh anymore.
If you activate the WP Live Php plugin, it adds a small javascript file to your blog.
It will monitor your directories by calling wp-live.php every second. If any file changed
(i.e. has a newer filemtime), the browser will be refreshed.
With this plugin, it is also very easy to check your work in many browsers simultaneously.
Just enable Frontend Monitoring, load the site in all your browsers and the rest goes automatically.
Starting from v1.3 there is an option to enable admin bar integration, to conveniently enable or
disable Live.php monitoring directly on your frontend or backend with just one click.
Since v1.5 with the content update feature, you can auto-update your browser with every post or page save.
For this we create a file in the uploads base folder (wp-content/uploads/), and touch it with every save,
which will trigger a refresh in the client browser. That location must be writable for this to work.
WARNING!
You should never activate this plugin on a live server! It is meant for developer environment only!
Use https://wordpress.org/plugins/reload/ instead, which is created for production environments.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon