[WordPress] 外掛分享: Easy Local Site

首頁外掛目錄 › Easy Local Site
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
2046 天前
最後更新
問題解決
WordPress 3.1+ v0.3 上架:2012-11-18

內容簡介

當同時在本機站點和正式站點上工作時,事情很容易變得混淆,你可能會忘記你正在查看哪個站點。這個外掛在工具欄中添加了一個顏色鮮明的橙色提示,並在本機站點的標題標籤前加上 [LOCAL],以便更容易辨識。

如果你從正式站點導入了數據庫,你可能還希望避免向真正的用戶發送電子郵件。這個外掛覆蓋了所有發出電子郵件的 'to' 地址,並將它們發送到你指定的地址。這使你可以測試聯繫表單、通知或任何其他發出的電子郵件通訊。所有電子郵件都會在主題行中加上原始接收者的電子郵件地址,以便你一目了然地看到它們最初是為誰準備的。

WP_LOCAL_DEV常數方法

你必須按照 Mark Jaquith 的說明使用 WP_LOCAL_DEV 常數方法:markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips

如果未定義 WP_LOCAL_DEV 常數,這個外掛將不會執行任何操作。這意味著你可以安全地將它放在 mu-plugins 文件夾中,並將其包含在 Git 庫中用於正式站點。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Easy Local Site」→ 直接安裝(推薦)

原文外掛簡介

When working on a local site and a production site at the same time, things can easily get confusing and you forget which site you’re looking at. This plugin adds a hard-to-miss, bright orange reminder to the toolbar and prepends [LOCAL] to the title tag on your local site.
If you’ve imported a database from a production site, you may also want to avoid sending emails out to real users. This plugin overrides the ‘to’ address of all outgoing emails, sending them instead to an address specified by you. This enables you to test contact forms, notifications or any other outgoing email communications. All emails will have the original recipient’s email address prepended to the subject line so you can see at a glance who they were originally intended for.
The WP_LOCAL_DEV constant method
You must use the WP_LOCAL_DEV constant method as outlined by Mark Jaquith: markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips
If the WP_LOCAL_DEV constant is not defined this plugin will do nothing. This means you can safely put it in your mu-plugins folder and include it in your Git repository on a production site.

文章
Filter
Apply Filters
Mastodon