[WordPress] 外掛分享: Development Environment

首頁外掛目錄 › Development Environment
WordPress 外掛 Development Environment 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
2621 天前
最後更新
問題解決
WordPress 4.6+ PHP 7.0+ v1.0.6 上架:2017-09-23

內容簡介

開發者必備的 WordPress 外掛,提供失誤處理、無密碼登錄、範本提示、禁止索引、刷新重寫規則等功能,讓您的本地開發環境更加完備。

功能特色

禁止索引 關閉公共部落格選項,產生 robots.txt 阻擋所有搜尋引擎的索引
刷新重寫規則 無需擔心自訂文章類型或分類的奇怪重定向問題。
無密碼登錄 僅需輸入您希望登錄的使用者,並在密碼欄位中輸入任意文字,即可登錄!僅在本機設置下生效
失誤處理錯誤畫面從 Laravel,現在也能用於 WordPress 設置
範本提示 可以查看正在載入您所在頁面的範本

我們的目標是在保障安全的前提下提高使用便利性,因此需要您採取必要的安全措施,以確保外掛啟用時不會被他人利用。

如果您正在運行實驗環境,請確保已設置htpasswd。

過濾器

設置環境

development-environment/is-development

動態設置插件如何檢測環境是否為開發環境,可基於您自己的標準進行設置。

停用某個功能

development-environment/require-component-$component

如果不需要使用某個功能,可停用該組件的 require。可用值為:

disallow-indexing、flush-rewrites、no-password-logins、whoops-error-handling

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Development Environment」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Whoops error handling, no password logins, template hints, no indexing, flush rewrites, everything a developer needs for their local development environment.
Components

Disallow Indexing Turn off the public blog option. This will modify the robots.txt generation to block all search engines
Flush Rewrites No more weird redirection problems when working on custom post types or taxonomies.
No Password Logins Just stick the user in you want to login as, write anything in the password field, and it will login! Only works when connecting from local host
Whoops Error Handling The error screen from laravel, now in your WordPress setup
Template Hints See which templates are loading for the page you are on

The goal is to exchange security for ease of use, for that reason it’s important that you take the security measures needed
to ensure that someone can’t take advantage of the site with this plugin enabled.
If you’re running on a staging environment ensure you have setup a htpasswd
Filters
Set Environment
development-environment/is-development

Dynamically set how the plugin detects if the environment is development based on your own criteria.
Stop a component from loading
development-environment/require-component-$component

Disable require of a component if you don’t want to use it. Possible values are:
disallow-indexing, `flush-rewrites`, `no-password-logins`, `whoops-error-handling`

延伸相關外掛

文章
Filter
Apply Filters
Mastodon