Skip to Main Content
WordPress Plugin Development Cookbook - Third Edition
book

WordPress Plugin Development Cookbook - Third Edition

by Yannick Lefebvre
March 2022
Intermediate to advanced content levelIntermediate to advanced
420 pages
8h 21m
English
Packt Publishing
Content preview from WordPress Plugin Development Cookbook - Third Edition

Chapter 9: Leveraging JavaScript, jQuery, and AJAX Scripts

JavaScript libraries, especially the very popular jQuery library along with its numerous plugins, can do wonders in bringing a website to life with slick animations, dynamic data queries, and advanced graphical features. Unfortunately, for all of their benefits, these scripts can also be difficult to work with. For example, loading more than one copy of jQuery can destroy everything that was set up by another instance, and errors in one script usually prevent other scripts from running correctly.

WordPress' answer to this convoluted architecture is twofold. As a first step, it comes pre-packaged with a copy of jQuery and many other popular JavaScript libraries that plugin developers ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

WordPress 5 Cookbook

WordPress 5 Cookbook

Rakhitha Nimesh Ratnayake
Building Web Apps with WordPress, 2nd Edition

Building Web Apps with WordPress, 2nd Edition

Brian Messenlehner, Jason Coleman
Professional WordPress Plugin Development, 2nd Edition

Professional WordPress Plugin Development, 2nd Edition

Brad Williams, Justin Tadlock, John James Jacoby

Publisher Resources

ISBN: 9781801810777Supplemental Content