Course info
Mar 15, 2016
1h 42m

There are a number of possible pitfalls when using JavaScript and WordPress together, such as conflicts with JavaScript files loaded by other plugins and the theme on a site, security when passing data between JavaScript and the WordPress database, and site performance. This course will show you how to help avoid these pitfalls and introduce you to the new WP REST API available starting in WordPress 4.4. You should have a WordPress site set up locally on your machine which you can do with a number of tools (VVV, MAMP, WAMP, etc).

About the author
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hello everyone. My name is Brian Hogg, and welcome to my course, Working with JavaScript and WordPress. I've been a developer and consultant for my own company for over 15 years and have been developing using WordPress and teaching WordPress-related technologies for the last five years. JavaScript allows you to add dynamic functionality to a WordPress site or a web application but there a number of pitfalls you want to avoid when using JavaScript and WordPress together. In this course, we're going to learn how to correctly add JavaScript files in your WordPress plugin or theme to avoid conflicts, how to send data back and forth between JavaScript and the WordPress database using the new WP REST API and how to set up a workflow to reduce the size of your JavaScript files increasing site performance. By the end of this course you'll be confident in using JavaScript and WordPress together for your next project. Before beginning this course, you should be familiar with the basics of using WordPress along with some JavaScript, jQuery, and PHP, but we'll walk through the code in the examples. I hope you'll join me in the Working with JavaScript and WordPress course at Pluralsight.