A
A
aliasst2020-04-28 20:47:48
WordPress
aliasst, 2020-04-28 20:47:48

How to enable default jquery in wordpress

A very simple question. Please tell me how to include the default jquery and jquery migrate from the wp-includes folder. In the latest versions of WordPress, they are disabled by default. When you activate some plugins, they appear, but I do not need these plugins for this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2020-04-28
@aliasst

Just like any other scripts, using wp_enqueue_script()
For example, the default Jquery is connected like this The Documentation page describes in detail how to do this, and what are the names of the scripts that are already registered (Table at the bottom of the page)
wp_enqueue_script('jquery');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question