wp_enqueue_script + wp_enqueue_style: these 2 are recent inventions in wordpress are they are from many years. I purchase a course from udemy his authors hasn't used these functions. His videos look like a freelance edition. he is saying 1 year back when he made this video it wasn't there.

Please guide me how long since these things have been incorporated into WordPress.

  • 2
    I do not want to sound discouraging, but you bought yourself a pile of outdated junk. If that videos was made a year after wp_enqueue_***, then it is way pre version 3.0. There is such a tremendously huge gap between the version in the video and v4.5. I can promise you, almost everything in that videos is done wrong, or depreciated. PHP and WordPress has come a long way in 8 - 9 years Apr 19, 2016 at 8:24
  • Thanks. This was the course that I bought. link Apr 20, 2016 at 2:15
  • I came to realize because I was learning through Tuts Plus Videos, which are amazingly good and then realized that This Udemy Video is not at all good. Apr 20, 2016 at 2:16

2 Answers 2


When looking at either The Codex or Code Reference there's usually a little snippet at the bottom which says:

Since: WordPress x.x.x

If we take a look at wp_enqueue_script() for example we see toward the bottom above the contributor notes that it has been around:

Since: WordPress 2.1.0

Now we can use the WordPress Release Chart to find out when 2.1.0 came out, which it did so January 22, 2007. So this function has been around for roughly ~9 years.


wp_enqueue_script is since Wordpress 2.1.0 https://developer.wordpress.org/reference/functions/wp_enqueue_script/

wp_enqueue_style is since Wordpress 2.6.0 https://developer.wordpress.org/reference/functions/wp_enqueue_style/

Found via a quick google

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.