WP Remove Query Strings From Static Resources source code

By Rinku Y, on WordPress.org since 2017. 3,000+ active installs.

Browse code Download zip

WP Remove Query Strings From Static Resources is a lightweight, zero-configuration WordPress plugin that automatically removes query strings (like ?ver=6.6) from your local CSS and JavaScript file URLs. Below is its source code for every one of its 9 releases, what changed in the latest one, and how often it ships.

What changed in 2.4

Released Jul 11, 2026, 2 days after 2.3
  • Added: Strict file extension checking to ensure only .css and .js files are processed, protecting dynamic PHP scripts.
  • Added: Safely ignores external resources to prevent breaking third-party APIs like Google Maps.
  • Improved: Internal code structure and reliability.

3 files changed since 2.3: 3 modified, 0 added, 0 removed.

Compare 2.3 with 2.4

Release history

9 releases since August 2024
  1. 2.4 Jul 11, 2026 Added: Strict file extension checking to ensure only .css and .js files are processed, protecting dynamic PHP scripts.
  2. 2.3 Jul 8, 2026 Plugin check issues fixed
  3. 2.2 Jul 6, 2026 Fixed: Replaced unsafe strtok() with explode() to prevent conflicts with other plugins and WordPress core loops.
  4. 2.1 Jul 6, 2026
  5. 2.0 Jun 29, 2026 Improved: Removed unnecessary class property, filter callback now uses local variable
Full WP Remove Query Strings From Static Resources changelog with diffs

Source of 2.4

6 files
Browse all WP Remove Query Strings From Static Resources 2.4 files Browse trunk