
內容簡介
此外掛程式使您可以使用 HTTP 認證阻止非生產環境的開發、測試和驗證。
此功能可以透過管理介面控制,同時也可透過在您的配置文件中聲明變數來關閉此項功能。
它使您可以在不必每次手動關閉外掛的情況下,將資料庫還原回非生產環境。
變數:define('WP_SHIELD_UN', '');
在您的 wp_config.php 文件中,需要將此簡單的代碼添加到被您的程式碼管理軟件忽略的檔案中,並將其引入。
這將覆蓋外掛程式設置中的啟用標誌。 在生產中啟用並添加上述代碼。
如果在其他環境中不存在該要求的檔案,它將提示使用者輸入設置的使用者名稱和密碼。
外掛標籤
開發者團隊
原文外掛簡介
This plugin will allow you to secure your development, staging and UAT environments
with an http authentication block that can be controlled in admin but also turned
off via a declared variable in your config file. It allows you to bring your Database
back to non-production environments without having to physically turn off the plugin each time.
Variable: define('WP_SHIELD_UN', '');
This simple line of code (recommended to add to a file ignored by your code management
software and required into your wp_config.php file) will override the enabled flag
if the plugin’s settings. Enable in production and add the above code. If that
require file doesn’t exist in your other environments, it will prompt users for the
set username and password.
