LevelNetwork Advanced Media Library Filters

چۈشەندۈرۈش

LevelNetwork Advanced Media Library Filters adds powerful, fast, and lightweight filtering options to your WordPress Media Library. It works seamlessly across both the List View and the Grid View / Media Modal.

Core Filters (Always Enabled)

  • File Format: Filter by Images, Documents, Audio, or Videos.
  • Dynamic Sub-formats: Cascading filters for specific extensions (JPG, PNG, WebP, SVG, GIF, PDF, Word, Excel, MP3, WAV, MP4, WebM).
  • File Size: Find files quickly by weight (< 100 KB, 100 KB – 500 KB, 500 KB – 1 MB, 1 MB – 2 MB, 2 MB – 5 MB, > 5 MB).

Optional Filters (Toggleable via Settings)

  • Dimensions & Orientation: Filter images by aspect ratio (Landscape, Portrait, Square).
  • Usage Status: Easily identify attached media versus unused/orphaned files to clean up your server.
  • Uploaded By (Author): Filter media by the specific user who uploaded it.
  • Alt Text Status (SEO): Instantly find images missing Alternative Text to improve your website’s accessibility and Google ranking.

ئېكران كەسمىسى

  • Main Media Library dashboard displaying the new advanced filter dropdowns in action.
  • File format extension filters and file size range selection.
  • Advanced image orientation options (Landscape, Portrait, Square) and Alt Text status filters.
  • Plugin settings page featuring the «Sync Media Data» tool for legacy media files.

ئورنىتىش

  1. Upload the plugin folder to the /wp-content/plugins/ directory, or install the plugin directly through the WordPress admin screen.
  2. Activate the plugin through the ›Plugins‹ screen in WordPress.
  3. Go to Settings -> Media Filters to configure your optional filters.
  4. (Optional) Click Sync Media Data once to generate metadata for your existing media library.

FAQ

Why are size and orientation filters not working for my older media files?

WordPress does not retroactively generate custom metadata for legacy files. For any media uploaded before installing this plugin, simply go to Settings -> Media Filters and click the «Sync Media Data» button once. All your older attachments will be processed and indexed. New uploads are indexed automatically.

Will the Alt Text filter slow down my large database?

No. Thanks to the architecture introduced in version 1.0.7, we replaced heavy database queries with a high-performance custom indexed flag (_levelnetwork_mlf_has_alt). The plugin runs lightning-fast even on Enterprise websites with over 50,000+ media assets.

Does the «Reset Filters» button trigger multiple server requests?

No. The reset mechanism is fully optimized for WordPress Backbone.js. It merges all filter resets into a single event loop, ensuring that only one lightweight AJAX request is sent to your server, keeping resource usage minimal.

What happens to the metadata if I uninstall the plugin?

We believe in clean code. If you delete the plugin, our custom uninstall.php routine automatically removes all indexed metadata keys and global options from your database. It is also fully compatible with object caching systems like Redis and Memcached, ensuring no phantom data is left behind.

Does this plugin delete or alter my original physical files?

Absolutely not. The plugin only reads file properties to generate search indexes within WordPress metadata. Your physical files, images, paths, and attachments remain completely untouched and safe.

باھالاشلار

بۇ قىستۇرمىغا تېخى باھا يېزىلمىدى.

تۆھپىكار ۋە ئىجادكار

«LevelNetwork Advanced Media Library Filters» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.

تۆھپىكار

«LevelNetwork Advanced Media Library Filters» نى تىلىڭىزغا تەرجىمە قىلىڭ

ئىجادىيەتكە قىزىقامسىز؟

كودقا كۆز يۈگۈرتۈپ، SVN خەزىنە تەكشۈرۈپ ياكى RSSئارقىلىق ئىجادىيەت خاتىرىسىگە مۇشتەرى بولغىلى بولىدۇ.

ئۆزگىرىش خاتىرىسى

1.0.7

  • Database Optimization: Replaced slow NOT EXISTS and empty string database operations for the Alt Text filter with a high-performance indexed flag (_levelnetwork_mlf_has_alt). Drastically improves response times on Enterprise websites with large media libraries (50k+ items).
  • UX Fix: Optimized the «Reset Filters» action in Grid View. Combined multiple sequential Backbone model updates into a single event loop to prevent duplicate, concurrent AJAX requests to the server.
  • Code Quality & Compliance: Standardized uninstall.php to use native WordPress functions (delete_post_meta_by_key), ensuring full synchronization with object caching systems (Redis, Memcached) and complete cleanup of global plugin options upon deletion. Resolved WPCS global variable scoping warnings.

1.0.6

  • New Feature: Added dynamic sub-format cascading filters. When selecting a primary format (e.g., Images or Documents), a secondary dropdown appears to filter by specific file types (JPG, PNG, WebP, GIF, SVG, PDF, Word, Excel, MP4, WebM, MP3, WAV).
  • Enhancement: Sub-format filters are fully supported and synchronized in both Grid/Modal View (AJAX) and standard List View.
  • Bug Fix: Fixed a PHPCS security warning (OutputNotEscaped) by correctly implementing the native WordPress disabled() function for HTML attributes.
  • Bug Fix: Cleaned up the plugin package by removing hidden macOS system files (.DS_Store) to strictly meet WordPress repository packaging guidelines.

1.0.5

  • Security improvements: Ensured thorough sanitization, escaping and unslashing of superglobals across the codebase.
  • Filter queries improvements: Properly merged meta_query to prevent overwriting existing queries.

1.0.4

  • Added sizes > 2 MB and > 5 MB to the size filter.

1.0.3

  • Repositioned «Bulk Select» (Selezione Multipla) to properly stay at the end of the filters.

1.0.2

  • Added Audio, Excel and TXT options to the Format Filter.
  • Restructured Media Library toolbar to group all dropdowns sequentially, ensuring the «Bulk Select» button always appears last.
  • Hid the redundant native WordPress media types filter when the plugin is active to prevent duplication.
  • Emphasized and redesigned the «Sync Existing Media» notice in the backend to ensure users don’t miss running it.

1.0.1

  • Fixed size and dimensions filters for previously uploaded media. Implemented a «Sync Media Data» tool on the settings page to process existing attachments.
  • Added a convenient «Settings» link in the Plugins page.

1.0.0

  • Initial release.