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

Upgrade for Unattach and Re-attach Media Attachments

外掛說明

WordPress allows to attach (or assign) images and other attachments organized within the Media Library to posts and pages.

A file will automatically be attached to a particular post when uploaded using the Add media button in that post. There are also “Attach” links in the Media Library to manually attach files to posts. Once attached there is no way to unattach or re-attach images, pdfs or any attachment in WordPress core.

This plugin fills this gap by providing two additional links next to “Attach” in the Media Library:

  • Re-Attach: Allows user to choose a new post to attach the media file.
  • Unattach: Totally removes an existing relation between an attachment and a post.

Bulk Actions

The plugin also provides bulk actions for unattaching and re-attaching multiple files at once! Just mark the files you want to change, select your desired action from the Bulk Actions dropdown and hit Apply.

Note

My initial issue came from here. Thanks to Unattach and Re-attach Media Attachments which inspired this plugin. Just adding upgrades of the code to the latter so it is safer for use and have fixed some bugs.

螢幕擷圖

  • Bulk actions "Unattach" and "Re-Attach" in the Media Library
  • The extended "Parent" column in the Media Library
  • Individual actions "Unattach" and "Re-Attach" per post

安裝方式

  1. Upload the plugin to the /wp-content/plugins/ directory or from the repository.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Refer to plugin description in regards to setting up how the plugins works
  4. It will work out of the box. Move to your media library and you can unattach and re-attach attachments to various posts.

常見問題集

How can I contribute?

You can raise lots of issues here and also make some Pull Requests through github

使用者評論

2020 年 2 月 8 日 1 則留言
I would have saved a lot of time if I had discovered this plugin earlier. It's lightweight and veeeery useful for me so, thanks a lot to the dev who created this 🙂
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Upgrade for Unattach and Re-attach Media Attachments〉的開發相關工作。

參與者