這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

whatwedo ACF Cleaner

描述

We analyze the post of the selected post types against the ACF groups in use. Afterwards we remove all data from deleted groups.
There’s a dry run available (discovery) to see how many fields would get removed. On the actual cleanup you get prompted because it can’t be undone (so make a backup first).

Contribute

Developed with ♥ by whatwedo in Bern.

This plugin was created for our own usage to clean a big database from old ACF data.
It’s not under active development but can be used (on your own risk).

安裝

Manual Installation

  1. Upload the entire /wwd-acf-cleanup directory to the /wp-content/plugins/ directory.
  2. Activate Whatwedo ACF Cleanup through the ‘Plugins’ menu in WordPress.
  3. Do a database backup manually or a third party tool
  4. Go to “Tools / ACF Cleaner”
  5. Select the post types you want to clean and run it

常見問題

What about conditional fields

Conditional fields are not taken in account at this point. This is probably also the issue why there’s nothing like this baked into the ACF plugin itself. Down the road it gets pretty complex.

Output the names of the deleted fields

We are aware that it would be handy to know which exact fields will get deleted, so the user can analyzing the actual data. This could be integrated in a future release.
We already know the name of the fields and we’re also returning them from the server. Since they’re a lot of unordered data, we don’t do something proper with those in the frontend .

評價

2021年4月2日
Amazing, just found this via the long thread in the ACF forum, like to check in now and then to see if some good solution have entered, and today was the day! Amazing work guys, appriascted you shared this plugin in the offical repo it works great. The only think I'm missing right now was as you already have confirmed in the FAQ. Output the names of the deleted fields but both for scan and delete so we know before the hit delete. Wasn't sure if it managed to findd the orphan meta fields from options pages? But sure this is a 5 out ot 5 stars even if some minor things coudl be asked for. I hope this could en ter active development we are many that would like to support even for a paid upgrade for more features. Hands down the only and best working ACF bulk clean orphan meta fields. Whatweasked for - whatwedo
閱讀全部1個評價

貢獻者及開發者

“whatwedo ACF Cleaner” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 whatwedo ACF Cleaner 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.0 (2020-02-22)

  • First release