{"id":1884,"date":"2024-12-26T12:50:52","date_gmt":"2024-12-26T11:50:52","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/nettoyeur-de-medias\/"},"modified":"2025-01-08T18:17:23","modified_gmt":"2025-01-08T17:17:23","slug":"nettoyeur-de-medias","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/media-cleaner\/","title":{"rendered":"Media cleaner"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Optimize media management with WPMasterToolKit's \"Media Cleaner\" module<\/h1>\n\n\n\n<p>Managing media in WordPress can quickly become complex, especially when uploaded files have illegible names or contain special characters. To simplify this process, the <strong>Media Cleaner<\/strong> from WPMasterToolKit offers an all-in-one solution for organizing and optimizing your media library. The module automatically cleans file names and generates key metadata from the cleaned file name. The result? A better organized library and SEO-ready media.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which plugin can Media Cleaner replace?<\/h2>\n\n\n\n<p>The module <strong>Media Cleaner<\/strong> can replace popular plugins such as :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Media File Renamer<\/strong> (to clean up file names)<\/li>\n\n\n\n<li><strong>Auto Image Attributes From Filename<\/strong> (to generate metadata from the file name)<\/li>\n<\/ul>\n\n\n\n<p>By combining these functions, this module reduces the number of active plugins and optimizes your site's overall performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Main features of the Media Cleaner module<\/h2>\n\n\n\n<p>The module <strong>Media Cleaner<\/strong> offers several features designed to automate media management and simplify the work of WordPress administrators:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>File name cleanup<\/strong><\/h3>\n\n\n\n<p>When a file is uploaded to the WordPress library, this :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Automatically deletes special characters (e.g. accents, spaces, symbols).<\/li>\n\n\n\n<li>Generates a clean, SEO-friendly file name.<\/li>\n<\/ul>\n\n\n\n<p>This ensures better compatibility with web servers and improved URL readability.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Automatic generation of metadata<\/strong><\/h3>\n\n\n\n<p>The module can automatically fill the following fields directly from the cleaned file name:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Title<\/strong> File name without extension.<\/li>\n\n\n\n<li><strong>Alternative text (alt text)<\/strong> Perfect for improving accessibility and SEO.<\/li>\n\n\n\n<li><strong>Caption<\/strong> Optional, ideal for illustrating your media.<\/li>\n\n\n\n<li><strong>Description<\/strong> For additional image details.<\/li>\n<\/ul>\n\n\n\n<p>Thanks to this automation, all uploaded media is optimized as soon as it is imported.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>Configurable options<\/strong><\/h3>\n\n\n\n<p>From the WordPress admin panel, you can enable or disable each module feature. This allows you to customize the experience to your needs. For example, you can choose to enable only the removal of special characters, or only the generation of alternative text.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use the Media Cleaner module<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Activate the module<\/h3>\n\n\n\n<p>Go to the <strong>WPMasterToolKit<\/strong>module, activate the <strong>Media Cleaner<\/strong>and access its parameters via the dedicated sub-menu.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Set your preferences<\/h3>\n\n\n\n<p>In the module parameters, you can :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enable\/disable file name cleaning.<\/li>\n\n\n\n<li>Choose the metadata to be automatically generated (title, alt text, caption, description).<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"WordPress media management interface\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"373\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-130-1024x373.png\" class=\"wp-image-3843\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-130-1024x373.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-130-300x109.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-130-768x280.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-130-1536x560.png 1536w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-130.png 1633w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Import your media<\/h3>\n\n\n\n<p>When you upload a new file, the module automatically takes care of the cleanup and metadata generation. You don't need to do anything else.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why this technical choice?<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Using native WordPress hooks<\/strong><\/h3>\n\n\n\n<p>The module uses two native hooks to integrate seamlessly with the WordPress system:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code data-no-auto-translation=\"\">wp_handle_upload_prefilter<\/code><\/strong> Edit the file name before it is saved on the server.<\/li>\n\n\n\n<li><strong><code data-no-auto-translation=\"\">wp_generate_attachment_metadata<\/code><\/strong> Allows you to complete the attachment's metadata (title, alt, etc.) once the file has been uploaded.<\/li>\n<\/ul>\n\n\n\n<p>These integrations ensure maximum compatibility with WordPress core and other plugins.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Customize settings<\/strong><\/h3>\n\n\n\n<p>Module parameters are stored using standard WordPress APIs, such as <code data-no-auto-translation=\"\">update_option<\/code> and <code data-no-auto-translation=\"\">get_option<\/code>. This ensures that your configurations are securely saved and retrieved.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>Performance and modularity<\/strong><\/h3>\n\n\n\n<p>The code is designed to be loaded only when the module is activated, in line with the philosophy of <strong>WPMasterToolKit<\/strong>. This preserves your site's overall performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The module <strong>Media Cleaner<\/strong> from WPMasterToolKit is an indispensable tool for all WordPress administrators concerned with optimizing their multimedia library. By automatically cleaning up file names and generating SEO-ready metadata, this module not only improves organization, but also the overall performance of your site. Adopt it today for simplified, efficient media management!<\/p>","protected":false},"excerpt":{"rendered":"<p>The article presents WPMasterToolKit's Media Cleaner module as an effective solution for managing multimedia files on WordPress sites. It automates filename cleanup and enriches metadata, helping to optimize SEO and media management. With features like automatic filename cleaning and metadata generation, Media Cleaner simplifies complex tasks, replacing several plugins. Investing in this tool is recommended for maintaining a professional online presence, whether you're a blogger, content manager or developer.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_robots_primary_cat":"","_seopress_titles_title":"Optimisez M\u00e9dias WordPress avec Media Cleaner","_seopress_titles_desc":"Optimisez votre biblioth\u00e8que WordPress avec Media Cleaner : nettoyez les noms de fichiers et boostez le SEO avec des m\u00e9tadonn\u00e9es automatiques.","_seopress_robots_index":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-1884","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=1884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}