{"id":73377,"date":"2017-08-18T15:44:30","date_gmt":"2017-08-18T15:44:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/upgrade-for-unattach-re-attach-media-attachments\/"},"modified":"2022-06-21T09:17:54","modified_gmt":"2022-06-21T09:17:54","slug":"upgrade-for-unattach-re-attach-media-attachments","status":"publish","type":"plugin","link":"https:\/\/ast.wordpress.org\/plugins\/upgrade-for-unattach-re-attach-media-attachments\/","author":12022803,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.2","stable_tag":"1.2.2","tested":"6.0.11","requires":"4.9","requires_php":"","requires_plugins":"","header_name":"Upgrade for Unattach & Re-Attach Media Attachments","header_author":"Laurence Bahiirwa","header_description":"Unattach and Re-attach images and other attachments from within the media library. The plugin is similar to its predecessors but security and code refactoring has been done. This has plans of being maintained and grown basing on requests of users.","assets_banners_color":"44a1d9","last_updated":"2022-06-21 09:17:54","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/omukiguy","header_plugin_uri":"https:\/\/github.com\/bahiirwa\/Upgrade-for-Unattach-Re-Attach-Media-Attachments\/","header_author_uri":"https:\/\/omukiguy.com","rating":4.4,"author_block_rating":0,"active_installs":300,"downloads":9032,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":{"1.0":{"tag":"1.0","author":"laurencebahiirwa","date":"2017-10-19 10:33:34"},"1.1.0":{"tag":"1.1.0","author":"laurencebahiirwa","date":"2017-11-15 01:18:38"},"1.1.1":{"tag":"1.1.1","author":"laurencebahiirwa","date":"2020-04-22 10:20:59"},"1.2.0":{"tag":"1.2.0","author":"laurencebahiirwa","date":"2020-04-30 18:15:24"},"1.2.1":{"tag":"1.2.1","author":"laurencebahiirwa","date":"2020-05-07 11:04:29"},"1.2.2":{"tag":"1.2.2","author":"laurencebahiirwa","date":"2022-06-21 09:17:54"}},"upgrade_notice":{"Version 1.2.2 (21.06.2022)":"<ol>\n<li>Bugfix for bulk edits.<\/li>\n<li>Text for WP 6.0.<\/li>\n<\/ol>","Version 1.2.1 (07.05.2020)":"<ol>\n<li>Remove unused assets.<\/li>\n<li>Add missing file links.<\/li>\n<li>Test for 5.4.1<\/li>\n<\/ol>","Version 1.2.0 (22.04.2020)":"<ol>\n<li>Improve Internalization for plugin.<\/li>\n<li>Improve file structure for better code management.<\/li>\n<li>Structured the code for WordPress code Standards.<\/li>\n<li>Text for WP 5.4.<\/li>\n<\/ol>"},"ratings":{"1":1,"2":0,"3":0,"4":0,"5":6},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2746201,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2746201,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2746201,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2746201,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1.0","1.1.1","1.2.0","1.2.1","1.2.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2746201,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2746201,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2746201,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Bulk actions \"Unattach\" and \"Re-Attach\" in the Media Library","2":"The extended \"Parent\" column in the Media Library","3":"Individual actions \"Unattach\" and \"Re-Attach\" per post"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1346,233,9027,9026,5939],"plugin_category":[50],"plugin_contributors":[145229],"plugin_business_model":[],"class_list":["post-73377","plugin","type-plugin","status-publish","hentry","plugin_tags-attachments","plugin_tags-media-library","plugin_tags-re-attach","plugin_tags-unattach","plugin_tags-upgrade","plugin_category-media","plugin_contributors-laurencebahiirwa","plugin_committers-laurencebahiirwa"],"banners":{"banner":"https:\/\/ps.w.org\/upgrade-for-unattach-re-attach-media-attachments\/assets\/banner-772x250.png?rev=2746201","banner_2x":"https:\/\/ps.w.org\/upgrade-for-unattach-re-attach-media-attachments\/assets\/banner-1544x500.png?rev=2746201","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/upgrade-for-unattach-re-attach-media-attachments\/assets\/icon-128x128.png?rev=2746201","icon_2x":"https:\/\/ps.w.org\/upgrade-for-unattach-re-attach-media-attachments\/assets\/icon-256x256.png?rev=2746201","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/upgrade-for-unattach-re-attach-media-attachments\/assets\/screenshot-1.png?rev=2746201","caption":"Bulk actions \"Unattach\" and \"Re-Attach\" in the Media Library"},{"src":"https:\/\/ps.w.org\/upgrade-for-unattach-re-attach-media-attachments\/assets\/screenshot-2.png?rev=2746201","caption":"The extended \"Parent\" column in the Media Library"},{"src":"https:\/\/ps.w.org\/upgrade-for-unattach-re-attach-media-attachments\/assets\/screenshot-3.png?rev=2746201","caption":"Individual actions \"Unattach\" and \"Re-Attach\" per post"}],"raw_content":"<!--section=description-->\n<p>WordPress allows to attach (or assign) images and other attachments organized within the Media Library to posts and pages.<\/p>\n\n<p>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.<\/p>\n\n<p>This plugin fills this gap by providing two additional links next to \"Attach\" in the <strong>Media Library<\/strong>:<\/p>\n\n<ul>\n<li><strong>Re-Attach<\/strong>: Allows user to choose a new post to attach the media file.<\/li>\n<li><strong>Unattach<\/strong>: Totally removes an existing relation between an attachment and a post.<\/li>\n<\/ul>\n\n<h3>Bulk Actions<\/h3>\n\n<p>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 <em>Bulk Actions<\/em> dropdown and hit <em>Apply<\/em>.<\/p>\n\n<h3>Note<\/h3>\n\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/45690582\/image-post-attachments-not-specific-to-post\/45705413#45705413\">My initial issue came from here<\/a>. Thanks to <a href=\"https:\/\/wordpress.org\/plugins\/unattach-and-re-attach-attachments\/\/\">Unattach and Re-attach Media Attachments<\/a> which inspired this plugin. Just adding upgrades of the code to the latter so it is safer for use and have fixed some bugs.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to the <code>\/wp-content\/plugins\/<\/code> directory or from the repository.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Refer to plugin description in regards to setting up how the plugins works<\/li>\n<li><strong>It will work out of the box<\/strong>. Move to your media library and you can unattach and re-attach attachments to various posts.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20can%20i%20contribute%3F'><h3>How can I contribute?<\/h3><\/dt>\n<dd><p>You can raise lots of <a href=\"https:\/\/github.com\/bahiirwa\/upgrade-for-unattach-re-attach-media-attachments\/\">issues<\/a> here and also make some <a href=\"https:\/\/github.com\/bahiirwa\/upgrade-for-unattach-re-attach-media-attachments\/\">Pull Requests through github<\/a><\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Allows to unattach and reattach images and other attachments from within the media library page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/73377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=73377"}],"author":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/laurencebahiirwa"}],"wp:attachment":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=73377"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=73377"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=73377"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=73377"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=73377"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=73377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}