WordPress Remove Script & Stylesheet Versions

wodpress tutorial
Wordpress Tutorial

In this post i will show you how to remove the version parameter from scripts and stylesheets enqueued by WordPress’s wp_enqueue_script() and wp_enqueue_style() functions.

you can paste(put) this code in the function.php
(or)
Create a file in your plug-in folder called RemoveVersion.php(you can name whatever you like) put below code in it along with plug-in declaration comments. Then go to admin dashboard plugin area and then active the remove version plug-in.

That’s it, you can follow any one of the above methods.

Reference links

script_loader_src(): https://developer.wordpress.org/reference/hooks/script_loader_src/

wp_enqueue_script(): http://codex.wordpress.org/Function_Reference/wp_enqueue_script

wp_enqueue_style():http://codex.wordpress.org/Function_Reference/wp_enqueue_style

I hope you like this tutorial, don’t forget to share your views, comments, and suggestion via comments.

By Arjun

I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments