If you are an optimization freak or just want your site performance grade to be the highest as possible in tests sites like Pingdom you know one of the most common issues on a WordPress site is the Remove query strings from static resources issue.
WordPress by default adds a query string to all the Javascript and CSS files added using the wp_enqueue_script and wp_enqueue_style functions.
Remove Query String Version programmatically
To keep total control, you can remove the version number using your functions.php file, just open your functions.php file and paste the following code:
Save it and you are done!
Remove Query String Version using a plugin
There are several plugins to allows you to remove the Query String Version without having to write any line of code but the one I use on my projects is Remove Query Strings From Static Resources.
Here are 2 ways to do this, choose the one that best suits you.
Dear Enrique, thanks for taking the time.
If you are interested, please kindly check our free plugin as well:
https://wordpress.org/plugins/remove-query-strings-littlebizzy/
Hopefully it matches your high expectations. Thanks for considering!
Well its pretty good Enrique. Thanks. however I recommend: https://wordpress.org/plugins/remove-query-strings-littlebizzy/
because can custom by defined constants. and no database query! cheers bro