WordPress.org

Forums

Using Differ jQuery In Plugin (2 posts)

  1. Hardeep Asrani
    Member
    Posted 1 year ago #

    I'm trying to create a plugin which uses jQuery.

    I tried 10 different jQuery scripts, and believe me that plugin is working with all of them, but with the jQuery which ships with WordPress.

    As much as I can remember, we are not allowed to include jQuery script in plugin, so is it any way to make it work or can I include jQuery in the plugin if the core jQuery is not working?

    Thanks for the help :)

  2. bcworkz
    Member
    Posted 1 year ago #

    Sorry for the slow response, I've been away.

    Please review Function Reference/wp enqueue script. It should answer most of your questions. It's quite rare for the core version to not work when properly implemented. In those rare cases, it must be deregistered before the correct version is registered and enqueued.

Topic Closed

This topic has been closed to new replies.

About this Topic