This addon adds the ability to delete attachments based on whether the attachment is attached to a post or not.
You can delete attachments based on the following options.
- Delete all attachments that are not attached to a post
- Delete all attachments that are attached to a post
- Delete all attachments based on their mime type (like image, video, audio etc)
In addition to the above options, you can also choose the following
- Whether to move the attachment to trash or permanently delete them
- Restrict attachments based on the created date
- Limit only to the first x number of attachments
This addon has the following filters.
This filter can be used to hide the “Delete attached attachments” option. To enable the filter just add the following line to your
functions.php file or any plugin.
add_filter( 'bd_attachments_show_delete_attached', '__return_false' );
This addon only provides the ability to delete posts based on attachment. If you want to schedule deletion of attachments automatically, then you would need the “Scheduler for Deleting Attachments” addon.
Requires at least v5.5 or above of Bulk Delete plugin.
= v1.2 (2015-08-02) =
- Added a filter to hide the delete "attached" attachment option
= v1.1 (2015-07-21) =
- Lot of enhancements to the UI.
= v1.0 (2015-05-10) =
- Initial Release