Created
July 24, 2014 08:21
-
-
Save fangcat/d48d622a78c8eecbb275 to your computer and use it in GitHub Desktop.
關閉 WordPress 文章版本功能,變更文章自動儲存的時間間隔
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* WordPress 文章版本設定 | |
* | |
* WordPress 預設會幫您儲存舊版的文章與分頁,以便您之後可以回復到先前的版本。 | |
* 這功能可關閉,或是指定最大版本數量。 | |
* 預設為開啟,若要關閉請將它設為 false。 | |
* 若您想指定指定最大版本數量,請設個整數。 | |
*/ | |
define('WP_POST_REVISIONS', false ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* WordPress 自動儲存間隔 | |
* | |
* 當您編輯文章時 WordPress 使用 Ajax 技術自動地定時幫您儲存文章草稿。 | |
* 您可更改數值以延長或減少自動儲存的時間間隔。 | |
* 預設儲存間隔為 60 秒。 | |
*/ | |
define('AUTOSAVE_INTERVAL', 120 ); // 單位:秒 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment