
內容簡介
您可以定義一個主文章密碼,作用於所有需要密碼的文章。若原始文章有設置密碼,同樣也可以使用原始文章的密碼。
當訪客提供了主文章密碼任何一篇需要密碼的文章後,主文章密碼將適用於所有其他需要密碼的文章(不需要為每篇文章都再提供一次主文章密碼),直到網站的 cookie 在瀏覽器中過期為止。
可以通過以下兩種方式定義主文章密碼:
a.) 通過指定常數 C2C_MASTER_POST_PASSWORD 來定義。通常在 wp-config.php 中這樣做:
define( 'C2C_MASTER_POST_PASSWORD', 'your_master_post_password' );
b.) 在 設定 -> 閱讀 的管理頁面上找到標記為“主文章密碼”的設置欄位。
如果定義了常數,則常數優先,設置欄位將不會顯示。
連結:外掛主頁 | 外掛目錄頁 | GitHub | 作者網站
外掛標籤
開發者團隊
原文外掛簡介
Define a master post password that works for all passworded posts, while permitting the original post passwords to also work.
Once the master post password has been provided by a visitor for any passworded post on the site, it applies to unlock all other passworded posts (without needing to provide the master post password again for each such post) until the site’s cookies expire in the browser.
There are two means by which the master post password can be defined:
a.) As a constant, C2C_MASTER_POST_PASSWORD. This is typically done in wp-config.php like so:
define( 'C2C_MASTER_POST_PASSWORD', 'your_master_post_password' );
b.) Via the settings field labeled “Master Post Password” found on the Settings -> Reading admin page.
If the constant is defined, it takes precedence and the settings field is NOT displayed.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
