Title: Depricated jQuery Function
Last modified: December 24, 2021

---

# Depricated jQuery Function

 *  Resolved [ripei](https://wordpress.org/support/users/ripei/)
 * (@ripei)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/depricated-jquery-function/)
 * This plugin seems to have some problems with jQuery. Upon installation, i can
   only use it when I also use the jQuery Legacy Plugin:
 * This is the error message:
    2021-11-05 21:21:45 Use of jQuery.fn.data(\’events\’)
   is deprecated Plugin: Require Post Category [https://mywebsite/wp-content/plugins/require-post-category/require-post-category.js](https://mywebsite/wp-content/plugins/require-post-category/require-post-category.js)
   [https://mywebsite/wp-admin/post.php?post=2884&action=edit](https://mywebsite/wp-admin/post.php?post=2884&action=edit)
 * Thanks for fixing this.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Josh Hartman](https://wordpress.org/support/users/joshhartman/)
 * (@joshhartman)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/depricated-jquery-function/#post-15280242)
 * I’m not able to reproduce this with the Classic Editor and Enable jQuery Migrate
   Helper plugins active. The use of `jQuery.fn.data('events')` was retired in version
   2.1 and replaced with an alternative. You can look at the plugin’s JS file and
   see there is no use of `jQuery.fn.data('events')`.
 * See this previous support request: [https://wordpress.org/support/topic/use-of-deprecated-jquery-function-2/](https://wordpress.org/support/topic/use-of-deprecated-jquery-function-2/)
 * Please make sure you are using the latest version of the plugin. My best guess
   is that you’re using a WordPress version prior to 5.5 since version Require Post
   Category v2.1 requires WordPress 5.5 or greater. If you can reproduce the issue
   starting with a fresh installation of WordPress let me know the steps to reproduce.

Viewing 1 replies (of 1 total)

The topic ‘Depricated jQuery Function’ is closed to new replies.

 * ![](https://ps.w.org/require-post-category/assets/icon-256x256.png?rev=1603108)
 * [Require Post Category](https://wordpress.org/plugins/require-post-category/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/require-post-category/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/require-post-category/)
 * [Active Topics](https://wordpress.org/support/plugin/require-post-category/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/require-post-category/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/require-post-category/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 2 participants
 * Last reply from: [Josh Hartman](https://wordpress.org/support/users/joshhartman/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/depricated-jquery-function/#post-15280242)
 * Status: resolved