內容簡介
這個 WordPress 外掛可以擴充 revisions 的功能,讓 custom fields 和 taxonomies 也能儲存並比較其中的變更。使用此外掛後,系統會自動開始捕捉這些資訊,並在比較 revisions 的畫面中以易讀的格式呈現。此外掛也提供更多的選項設定,讓使用者可以更改比較畫面的外觀和過濾 metadata keys 的內容。如果使用者在使用過程中遇到問題,建議開啟 debug 和 info,並提供相關截圖和 php log。
常見問題:
- 這個外掛有沒有使用者介面?
- 沒有,安裝後即可自動開始捕捉 custom fields 與 taxonomies 的變更。
- 可以更改比較畫面的外觀嗎?如何更改?
- 可以,在 "settings.ini" 中更改 CSS 的設定即可。
- 什麼是 metadata keys,能否過濾掉不需要的內容?
- Metadata keys 是指儲存 taxonomy 資訊時使用的關鍵字,使用者可以設定一個或多個正規表達式來過濾掉不需要的內容。
- 怎麼查看 revisions 的變更紀錄?
- 使用 WordPress 內建的 "Compare Revisions" 功能,畫面會顯示排序過的 fields 與其變更的值。
- 如果需要回復之前的 revisions,該怎麼做?
- 點擊 "Restore This Revision" 按鈕,畫面會顯示當下右側欄位的資訊,而最後一個 revision slot 則會呈現灰色並解釋原因。
外掛標籤
開發者團隊
② 後台搜尋「Extend Revisions for Custom Fields and Taxonomies」→ 直接安裝(推薦)
原文外掛簡介
WordPress revisions do not normally include custom fields or taxonomies. This plugin extends revisions to include taxonomies and custom fields from PODS etc, allowing previous states to be captured, compared & restored as expected.
Usage
There is no user interface, once installed and activated it will start
capturing custom field and taxonomy information. The rest is stock WordPress revision functionality, except that this plugin formats the extra data into an easy to read format for display in the comparison screens.
The look for the compare screens can be changed in “settings.ini” (including turn off or changing the CSS used).
Features
Taxonomies are saved as metadata with a key such as “$TAXONOMY:light_conditions” for the “light_conditions” custom category. The values are a list of “ID=Name” pairs. These would generally sort to the top (or close to it).
WordPress limits how the data is presented in the “Compare Revisions” screen, so the data is displayed as an alphabetically sorted list of fields and their values.
You can filter out metadata keys with one or more regular expressions if you don’t care about their values. Filtered out metadata is not saved, displayed or restored.
Some CSS is applied to the WordPress “Compare Revisions” screen which I believe makes it easier to understand, however you can disable this by renaming or deleting the CSS file (or adjusting “settings.ini”).
The unicode characters also make the output easier to read and you can change their values or remove them via “settings.ini”. For example, you can tell the difference between a repeating field and a single field with many lines.
Note that the “Restore This Revision” button restores what is on the right hand column and explains why it is greyed out for the last revision slot.
Try it out
Try it for free at TasteWP
Reporting Issues
Please turn on both “debug” and “info” in settings, perform the failing
operation, and include the php log (part or all, if later specify the problem’s time as per the log)…
Please provide screenshots if possible.
