前言介紹
- 這款 WordPress 外掛「Simple Revisions Delete」是 2015-01-04 上架。
- 目前有 10000 個安裝啟用數。
- 上一次更新是 2024-03-07,距離現在已有 422 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.5.12 以上。
- 有 47 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
brikou |
外掛標籤
Purge | delete | cleanup | gutenberg | revisions |
內容簡介
這個外掛允許您逐個或一次性刪除文章的修訂版(清除或批量動作)。與 Gutenberg(實驗性的)和經典編輯器兼容。
它有什麼作用?
Simple Revisions Delete 在文章提交框內添加一個不顯眼的鏈接,以便讓您通過 AJAX清除(刪除)它的修訂版本,也可進行批量動作。
它可幫助您刪除不必要的文章修訂版本,讓您的資料庫保持清潔。與其他類似的外掛不同,它可以讓您單獨刪除特定文章的修訂,而不是一次刪除整個站點的修訂版本。
該外掛完全整合在 WordPress 後台中,使用本地的核心功能進行安全刪除版本。
該外掛非常輕巧,非常簡單易用,只需完成工作!
它是如何工作的?
外掛會在文章提交框內,與預設修訂次數計數器旁邊添加一個不顯眼的鏈接(請參閱截圖部分)。
當您單擊它時,它將通過 AJAX(無 JS 也是支援的)清除相應的文章修訂版本。
它還會在文章/頁面行視圖中添加新的批量操作選項,以讓您一次清除多個文章的修訂版本。
最新狀態是什麼?
自 v2 版本以來,您現在可以從 Gutenberg 編輯器內部一次性清除所有文章版本。
請記住,此功能是實驗性的。我尚未發現任何方法可以使用當前可用的區塊編輯器方法適當地運作它。我使用了jQuery(和AJAX),這幾乎是一種駭客攻擊(解決方法),而不是採用區塊編輯器需要的語言的一項乾淨的方法。
自v1.3版以來,您可以逐個刪除修訂版本(請參閱截圖)。
查看外掛頁面
注意:此外掛沒有管理頁面-不需要。
文章類型支援
預設支援的文章類型為文章和頁面,但您可以輕鬆添加自定義文章類型或移除預設的文章類型,使用以下掛鉤:
function bweb_wpsrd_add_post_types( $postTypes ){
$postTypes[] = 'additional-cpt';
$postTypes[] = 'another-cpt';
return $postTypes;
}
add_filter( 'wpsrd_post_types_list', 'bweb_wpsrd_add_post_types' );
參見 CODEX 以支援所有 CPT:https://codex.wordpress.org/Function_Reference/get_post_types
自訂用戶權限
預設的權限是 delete_post以清除或刪除修訂版本,但您可以使用以下掛鉤覆寫它:
function bweb_wpsrd_capability() {
return 'edit_post';
}
add_filter('wpsrd_capability', 'bweb_wpsrd_capability');
多國語言
此外掛只有幾個句子,但您可以通過 .MO 和 .PO 文件輕鬆地翻譯它們。目前可用的語言為:
英語
法語
德語-感謝mallard66
荷蘭語-感謝jondor
成為翻譯人員並向我發送您的翻譯!聯絡我
查看我的其他外掛
如果出現任何問題,請要求幫助或報告錯誤。這是使社區受益的最佳方法!
原文外掛簡介
Let you delete your posts revisions individually or all at once (purge or bulk action). Compatible with Gutenberg (experimental) and classic editor.
What does it do?
Simple Revisions Delete adds a discreet link within a post submit box to let you purge (delete) its revisions via AJAX. Bulk actions also available.
It helps you keep a clean database by removing unnecessary posts revisions. Unlike other similar plugins, it lets you delete only specific posts revisions, not all your site revisions at once.
The plugin is perfectly integrated in the WordPress back-end, and uses native core functions to safely delete revisions.
It is very lightweight, very simple to use, and just does the job!
How does it work?
The plugin adds a discreet link in the post submit box, next to the default revisions counter (see screenshots section).
When you click on it, it will purge the appropriate post revisions via AJAX (no JS is also support).
It also add a new bulk action option in the post/page row view to let you purge revisions of multiple posts at once.
What’s new?
Since v2 you can now purge all your posts revisions from within the Gutenberg editor.
Keep in mind that this feature is experimental. I haven’t yet find any way to make it works in a proper way with the current block editor available methods. I’m using jQuery (and AJAX) which is pretty much a hack (a workaround) and not a clean method considering the langages using by the Block Editor.
Since v1.3 you can delete a single revision at once (see screenshots).
See plugin page
NOTE: There is no admin page for this plugin – none is needed.
Post Types support
The default supported post types are post and page, but you can easily add custom post types or remove default post types with the following hook:
function bweb_wpsrd_add_post_types( $postTypes ){
$postTypes[] = 'additional-cpt';
$postTypes[] = 'another-cpt';
return $postTypes;
}
add_filter( 'wpsrd_post_types_list', 'bweb_wpsrd_add_post_types' );
See CODEX to add support to all CPTs: https://codex.wordpress.org/Function_Reference/get_post_types
Custom user capability
The default capability to purge or remove rivisions is delete_post, but you can override this with the following hook:
function bweb_wpsrd_capability() {
return 'edit_post';
}
add_filter('wpsrd_capability', 'bweb_wpsrd_capability');
Languages
The plugin only bears a few sentences, but you can easily translate them through .MO & .PO files. Currently available languages are:
English
French
Deutsch – Thanks to mallard66
Dutch – Thanks to jondor
Become a translator and send me your translation! Contact-me
CHECK OUT MY OTHER PLUGINS
Please ask for help or report bugs if anything goes wrong. It is the best way to make the community benefit!
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Simple Revisions Delete」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.1.1 | 1.2.1 | 1.3.1 | 1.3.2 | 1.3.3 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.4.5 | 1.4.6 | 1.4.7 | 1.5.1 | 1.5.2 | 1.5.3 |
延伸相關外掛(你可能也想知道)
Classic Editor 》Classic Editor 是由 WordPress 團隊維護的官方外掛程式,可還原之前(也就是「經典」)的 WordPress 編輯器和「編輯文章」畫面,使使用者可以使用延伸這個畫...。
Advanced Editor Tools 》高級編輯工具(以前稱為 TinyMCE Advanced)引入了一個「經典段落」區塊,供區塊編輯器(Gutenberg)使用。, 如果您還沒有準備好切換到區塊編輯器,或者有插...。
Classic Widgets 》Classic Widgets 是由 WordPress 團隊維護的官方外掛,能夠恢復先前(即「經典」)的 WordPress widgets 設定畫面。該外掛將於 2024 年或必要時保持支援和維...。
Starter Templates – AI-Powered Templates for Elementor & Gutenberg 》免費模板,支援 Elementor、Beaver Builder 和 Block Editor, 使用 Starter Templates 外掛,只需數分鐘即可建立專業且完美的網站。此外掛為使用者提供超過 2...。
Spectra Gutenberg Blocks – Website Builder for the Block Editor 》a.com/tutorials/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme" rel="nofollow ugc">Spectra tutorials, you can easily learn how to ...。
Disable Gutenberg 》此外掛可禁用新的 Gutenberg 編輯器 (也稱為區塊編輯器),並以經典編輯器取代它。你可以完全禁用 Gutenberg,或從文章、頁面、角色、文章類型和主題模板中有...。
Gutenberg Blocks with AI by Kadence WP – Page Builder Features 》Kadence Blocks 是一個 WordPress 外掛,它附加自訂區塊和選項,擴展了 Gutenberg 編輯功能,使您能夠輕鬆創建美麗的網站,而不需要任何程式編寫。Kadence Bl...。
Extendify 》Extendify 是一個網站設計和製作工具平台,提供豐富的圖案和全頁面佈局,可用於 Gutenberg 區塊編輯器,幫助人們建立美麗的 WordPress 網站。, 使用 Extendif...。
Page Builder Gutenberg Blocks – CoBlocks 》, 注意:對於已受 CoBlocks 3.0.0 版本影響的使用者,請查看我們在 WordPress.org 支援論壇文章,如果您需要支援,請建立新的主題帖。, , CoBlocks 是新版 Gu...。
Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE 》Otter 是一款 Gutenberg Blocks 頁面建構外掛,可為 WordPress Block Editor(又稱 Gutenberg)添加額外功能,讓您享受更好的頁面建構體驗,而無需使用傳統的...。
AI Powered Starter Templates by Kadence WP 》用三個滑鼠點擊建立一個美觀的「效能優化」網站, 在幾分鐘內創建和自定義專業設計的網站。, Kadence Starter Templates 為您提供使用 WordPress 區塊構建器的...。
GenerateBlocks 》將不同的功能整合至編輯器,但並不會因為過多的一維方塊造成內容過於臃腫。使用 GenerateBlocks,您只需深入學習少量的方塊,即可用於創建任何內容。, Genera...。
VK Blocks 》這是一個擴充 Gutenberg 模塊的外掛。, [ 模塊 ], , 成員, 外框, 警示, 常問問題, 氣球, 流, 按鈕, 公關模塊, 公關內容, 邊框盒, 標題(帶副標題), 響應間距...。
Stackable – Page Builder Gutenberg Blocks 》終極與古鐸版衣搭檔, Stackable 是您一直在等待的終極可靠古鐸版衣搭檔。使用堅強、輕便的自訂區塊、現成設計、UI套件、全域設定和高級自訂選項建立動態網站...。
Kubio AI Page Builder 》, , Kubio 是一個創新的基於區塊的 WordPress 網站建立工具,它以全新的區塊來擴充編輯器功能並提供使用者無限的樣式選項。透過先進的編輯功能,Kubio 使用者...。