{"id":25372,"date":"2013-09-22T05:58:15","date_gmt":"2013-09-22T05:58:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/remove-extra-media\/"},"modified":"2015-06-18T13:14:42","modified_gmt":"2015-06-18T13:14:42","slug":"remove-extra-media","status":"publish","type":"plugin","link":"https:\/\/nl-be.wordpress.org\/plugins\/remove-extra-media\/","author":8121117,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.1","stable_tag":"1.1.1","tested":"4.3.0","requires":"3.9.2","requires_php":"","requires_plugins":"","header_name":"Remove Extra Media","header_author":"Axelerant","header_description":"","assets_banners_color":"","last_updated":"2015-06-18 13:14:42","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/axelerant.com\/about-axelerant\/donate\/","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/remove-extra-media\/","header_author_uri":"https:\/\/axelerant.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2292,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0.0":"<ul>\n<li>Initial release<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.1.0","1.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"776666","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"776666","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"776666","resolution":"3","location":"assets"}},"screenshots":{"1":"Settings screen","2":"Process screen pre-run","3":"Process screen post-run"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[84,166,3511],"plugin_category":[50],"plugin_contributors":[78254,78255,78256],"plugin_business_model":[],"class_list":["post-25372","plugin","type-plugin","status-publish","hentry","plugin_tags-media","plugin_tags-posts","plugin_tags-remove","plugin_category-media","plugin_contributors-comprock","plugin_contributors-saurabhd","plugin_contributors-subharanjan","plugin_committers-comprock","plugin_committers-saurabhd","plugin_committers-subharanjan"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/remove-extra-media.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/remove-extra-media\/assets\/screenshot-1.png?rev=776666","caption":"Settings screen"},{"src":"https:\/\/ps.w.org\/remove-extra-media\/assets\/screenshot-2.png?rev=776666","caption":"Process screen pre-run"},{"src":"https:\/\/ps.w.org\/remove-extra-media\/assets\/screenshot-3.png?rev=776666","caption":"Process screen post-run"}],"raw_content":"<!--section=description-->\n<p>Use Remove Extra Media to remove extra media attachments from your selected post types.<\/p>\n\n<p>In my use case, my testimonials widgets post types in some cases, for whatever reason, had up to 7 extra media attachments related to them. I wanted a quick way to clear those excess out. Considering that the only image or media attachment a testimonial should have was the featured, I simply removed all the others.<\/p>\n\n<p>This tool works by removing the attachment relationship as this saves the media file in case it's used by other attachments. Using <code>wp_delete_attachment<\/code> would delete the media file, which is something to avoid.<\/p>\n\n<h4>Primary Features<\/h4>\n\n<ul>\n<li>API<\/li>\n<li>Ajax based processing screen<\/li>\n<li>Media isn't deleted, only unattached from post type entry<\/li>\n<li>Settings export\/import<\/li>\n<li>Settings screen<\/li>\n<li>Variable allowed media count<\/li>\n<\/ul>\n\n<h4>Settings Options<\/h4>\n\n<p><strong>General<\/strong><\/p>\n\n<ul>\n<li>Post Type - Post type to remove excess media from.<\/li>\n<li>Media Limit - Number of media items to limit selected post types to. Count includes featured image.<\/li>\n<\/ul>\n\n<p><strong>Testing<\/strong><\/p>\n\n<ul>\n<li>Debug Mode - Bypass Ajax controller to handle posts_to_import directly for testing purposes.<\/li>\n<li>Posts to Import - A CSV list of post ids to import, like '1,2,3'.<\/li>\n<li>Skip Importing Posts - A CSV list of post ids to not import, like '1,2,3'.<\/li>\n<li>Import Limit - Useful for testing import on a limited amount of posts. 0 or blank means unlimited.<\/li>\n<\/ul>\n\n<p><strong>Compatibility &amp; Reset<\/strong><\/p>\n\n<ul>\n<li>Export Settings \u2013 These are your current settings in a serialized format. Copy the contents to make a backup of your settings.<\/li>\n<li>Import Settings \u2013 Paste new serialized settings here to overwrite your current configuration.<\/li>\n<li>Remove Plugin Data on Deletion? - Delete all Remove Extra Media data and options from database on plugin deletion<\/li>\n<li>Reset to Defaults? \u2013 Check this box to reset options to their defaults<\/li>\n<\/ul>\n\n<h3>Notes<\/h3>\n\n<p>TBD<\/p>\n\n<h3>API<\/h3>\n\n<ul>\n<li>Read the <a href=\"https:\/\/github.com\/michael-cannon\/remove-extra-media\/blob\/master\/API.md\">Remove Extra Media API<\/a>.<\/li>\n<\/ul>\n\n<h3>Localization<\/h3>\n\n<p>You can translate this plugin into your own language if it's not done so already. The localization file <code>remove-extra-media.pot<\/code> can be found in the <code>languages<\/code> folder of this plugin. After translation, please <a href=\"https:\/\/axelerant.com\/contact-axelerant\/\">send the localized file<\/a> for plugin inclusion.<\/p>\n\n<p><strong><a href=\"https:\/\/nodedesk.zendesk.com\/hc\/en-us\/articles\/202294892\">How do I localize?<\/a><\/strong><\/p>\n\n<ul>\n<li>Serbian by <a href=\"http:\/\/firstsiteguide.com\">Ognjen Djuraskovic<\/a><\/li>\n<li>Spanish by <a href=\"http:\/\/firstsiteguide.com\">Ognjen Djuraskovic<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<h4>Requirements<\/h4>\n\n<ul>\n<li>TBD<\/li>\n<\/ul>\n\n<h4>Install Methods<\/h4>\n\n<ul>\n<li>Through WordPress Admin &gt; Plugins &gt; Add New, Search for \"Remove Extra Media\"\n\n<ul>\n<li>Find \"Remove Extra Media\"<\/li>\n<li>Click \"Install Now\" of \"Remove Extra Media\"<\/li>\n<\/ul><\/li>\n<li>Download <a href=\"http:\/\/downloads.wordpress.org\/plugin\/remove-extra-media.zip\"><code>remove-extra-media.zip<\/code><\/a> locally\n\n<ul>\n<li>Through WordPress Admin &gt; Plugins &gt; Add New<\/li>\n<li>Click Upload<\/li>\n<li>\"Choose File\" <code>remove-extra-media.zip<\/code><\/li>\n<li>Click \"Install Now\"<\/li>\n<\/ul><\/li>\n<li>Download and unzip <a href=\"http:\/\/downloads.wordpress.org\/plugin\/remove-extra-media.zip\"><code>remove-extra-media.zip<\/code><\/a> locally\n\n<ul>\n<li>Using FTP, upload directory <code>remove-extra-media<\/code> to your website's <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>Activation Options<\/h4>\n\n<ul>\n<li>Activate the \"Remove Extra Media\" plugin after uploading<\/li>\n<li>Activate the \"Remove Extra Media\" plugin through WordPress Admin &gt; Plugins<\/li>\n<\/ul>\n\n<h4>Usage<\/h4>\n\n<ol>\n<li>Configure through WordPress Admin &gt; Settings &gt; Remove Extra Media<\/li>\n<li>Process posts and such via WordPress Admin &gt; Tools &gt; Remove Extra Media<\/li>\n<\/ol>\n\n<h4>Upgrading<\/h4>\n\n<ul>\n<li>Through WordPress\n\n<ul>\n<li>Via WordPress Admin &gt; Dashboard &gt; Updates, click \"Check Again\"<\/li>\n<li>Select plugins for update, click \"Update Plugins\"<\/li>\n<\/ul><\/li>\n<li>Using FTP\n\n<ul>\n<li>Download and unzip <a href=\"http:\/\/downloads.wordpress.org\/plugin\/remove-extra-media.zip\"><code>remove-extra-media.zip<\/code><\/a> locally<\/li>\n<li>Upload directory <code>remove-extra-media<\/code> to your website's <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Be sure to overwrite your existing <code>remove-extra-media<\/code> folder contents<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Most Common Issues<\/dt>\n<dd><ul>\n<li>Got <code>Parse error: syntax error, unexpected T_STATIC, expecting ')'<\/code>? Read <a href=\"https:\/\/nodedesk.zendesk.com\/hc\/en-us\/articles\/202331041\">Most Axelerant Plugins Require PHP 5.3+<\/a> for the fixes.<\/li>\n<li><a href=\"https:\/\/nodedesk.zendesk.com\/hc\/en-us\/articles\/202330781\">Debug common theme and plugin conflicts<\/a><\/li>\n<li><a href=\"https:\/\/nodedesk.zendesk.com\/hc\/en-us\/articles\/202243372\">Change or debug CSS<\/a><\/li>\n<\/ul><\/dd>\n<dt>Still Stuck or Want Something Done? Get Support!<\/dt>\n<dd><ol>\n<li><a href=\"https:\/\/nodedesk.zendesk.com\/hc\/en-us\/sections\/200861112-WordPress-FAQs\">Remove Extra Media Knowledge Base<\/a> - read and comment upon frequently asked questions<\/li>\n<li><a href=\"https:\/\/github.com\/michael-cannon\/remove-extra-media\/issues\">Open Remove Extra Media Issues<\/a> - review and submit bug reports and enhancement requests<\/li>\n<li><a href=\"http:\/\/wordpress.org\/support\/plugin\/remove-extra-media\">Remove Extra Media Support on WordPress<\/a> - ask questions and review responses<\/li>\n<li><a href=\"https:\/\/github.com\/michael-cannon\/remove-extra-media\/blob\/master\/CONTRIBUTING.md\">Contribute Code to Remove Extra Media<\/a><\/li>\n<li><a href=\"http:\/\/store.axelerant.com\/become-beta-tester\/\">Beta Testers Needed<\/a> - get the latest Remove Extra Media version<\/li>\n<\/ol><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>See <a href=\"https:\/\/github.com\/michael-cannon\/remove-extra-media\/blob\/master\/CHANGELOG.md\">Changelog<\/a><\/p>","raw_excerpt":"Use Remove Extra Media to remove extra media attachments from your selected post types.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/25372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=25372"}],"author":[{"embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/comprock"}],"wp:attachment":[{"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=25372"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=25372"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=25372"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=25372"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=25372"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=25372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}