by Polygon Themes
5 (15 reviews)
Autoremove Attachments
Remove child attachments when parent post, page or custom post type is deleted.
Tested up to WP 6.3.7 (Current: 6.8.2)
v1.3.1
Current Version v1.3.1
Updated 2 years ago
Last Update on 12 Aug, 2023
Synced 19 hours ago
Last Synced on
Rank
#4,045
—
No change
Active Installs
3K+
—
No change
KW Avg Position
N/A
—
No change
Downloads
32.8K
—
Total downloads
Support Resolved
0%
—
No change
Rating
100%
Review 5 out of 5
5
(15 reviews)
Next Milestone 4K
3K+
4K+
185
Ranks to Climb
-
Growth Needed
3,684
Current Installs
Need 316 more installs to reach 4K+
Rank Changes
Current
#4,045
Change
Best
#
Active Installs Growth
Current
3,684+
Growth
Peak
3,684
Downloads Growth
Downloads
Growth
Peak
Reviews & Ratings
5.0
15 reviews
Overall
100%
5
15
(100%)
4
0
(0%)
3
0
(0%)
2
0
(0%)
1
0
(0%)
Tracked Keywords
Showing 0 of 0| Keyword | Position | Change | Type | Updated |
|---|---|---|---|---|
| No keyword data available yet. | ||||
Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 1.3.1
- Last Updated
- Aug 12, 2023
- Requires WP
- 5.8+
- Tested Up To
- 6.3.7
- PHP Version
- 7.4 or higher
- Author
- Polygon Themes
Support & Rating
- Rating
- ★ ★ ★ ★ ★ 5
- Reviews
- 15
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowSimilar Plugins
Skyboot Custom Icons for Elementor
200K+ installs
#256
Performance Lab
200K+ installs
#266
Photo Gallery by 10Web - Mobile-Friendly Image Gallery
200K+ installs
#267
Instant Images – One-click Image Uploads from Unsplash, Openverse, Pixabay, Pexels, and Giphy
200K+ installs
#280
Dear Flipbook – PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer
100K+ installs
#288
Frequently Asked Questions
Common questions about Autoremove Attachments
Yes, it does. It works with posts, pages and custom post types. All child attachments are removed when the parent is deleted.
The files are removed when the parent post, page, or custom post type is permanently removed. A soft delete that places it in Trash will not trigger the removal of your attachments. The purge happens when you empty your trash.
Yes, you can. By default, all media files attached to a post, page or custom post type are removed automatically. If you need granular control you can use the filter autoremove_attachments_allowed to define custom rules for controlling when the child attachments should be removed automatically. Here is an example on how you can remove the attachments only for specific custom post types: function autoremove_attachments_custom_rule() { // Global variables. global $post_id; // Variables. $post_type = get_post_type( $post_id ); $allowed_post_types = array( 'project', 'product', ); // Default return value. $allowed_to_remove = false; // Custom rules for removing attachments. if ( in_array( $post_type, $allowed_post_types ) ) { $allowed_to_remove = true; } // Return. return $allowed_to_remove; } add_filter( 'autoremove_attachments_allowed', 'autoremove_attachments_custom_rule' ); The returned value should be true for the cases in which you want the attachments removed. (false otherwise)
Depending on how you use the plugin, the answer can be either yes, or no. If you keep the plugin running with the additional checks enabled, you have no restrictions on how you can use your attachments. (you can use your media files in multiple locations, without the fear of broken links caused by their removal) If you disable the additional checks, you need to make sure you don't reuse your media files between posts. If you do and the parent is deleted, you will end up with broken links in all the other locations where the removed attachments were used. Regardless of how you use the plugin, if you need to use an attachment over and over again, upload it from the global Media Library menu. ( Media > Add New ) This way, it won't be attached as a child to a specific post, page, or custom post type and you will be able to use it without restrictions.