An in-depth guide on using Ajax with WordPress

WordPress and Ajax Chapters

WordPress and Ajax 3rd Edition is being written in the open. Leave feedback in the form of comments so I can shape the book towards the reader. The chapters are in chronological order (oldest to newest).

WordPress and Ajax Sample Chapters

By Ronald | December 10, 2019 | 0 Comments

Here’s an example PDF of my WordPress and Ajax book.

Introduction to WordPress Actions and Filters

By Ronald | December 22, 2019 | 0 Comments

An introduction to how actions and filters work within WordPress. This is an excerpt from the upcoming WordPress and Ajax book.

Building Your First WordPress Plugin Foundation

By Ronald | December 23, 2019 | 0 Comments

Building a simple WordPress plugin is just as simple as adding a file or folder to the to your plugins directory, which is found under wp-content/plugins. In this chapter, we’re going to build a simple plugin, which will serve as the architecture for later modifications.

Adding Scripts Properly to WordPress

By Ronald | December 24, 2019 | 0 Comments

In this chapter, I show you how to add scripts to WordPress properly.

Localizing Your Scripts

By Ronald | December 25, 2019 | 0 Comments

This chapter teaches you how to localize your scripts so you can get variables in your JavaScript files.

Adding Styles Properly to WordPress

By Ronald | December 26, 2019 | 0 Comments

In this chapter I’ll show you how to load styles properly and show you an example based on a shortcode.

Page Detection in WordPress

By Ronald | December 30, 2019 | 0 Comments

Wouldn’t you like to not load scripts and styles on every front-end page and admin page? This chapter goes over WordPress conditionals.

WordPress Loading Techniques

By Ronald | January 7, 2020 | 0 Comments

Within this chapter I go over several techniques for loading scripts and styles. I also go over how to remove scripts and styles from a WordPress plugin.

jQuery for WordPress

By Ronald | January 7, 2020 | 0 Comments

jQuery for WordPress covers namespacing, private and public functions and variables, and how to call the code from another JavaScript file.

WordPress Nonces and Why They Are Useful

By Ronald | January 7, 2020 | 0 Comments

This chapter covers WordPress nonces, how to implement them, why they are useful, and why you should use them.

Data Validation in WordPress

By Ronald | January 13, 2020 | 0 Comments

Data validation in WordPress is extremely important. It’s necessary to escape and sanitize everything. Do not trust anyone, especially yourself.

Introduction to Admin Ajax

By Ronald | January 15, 2020 | 3 Comments

Admin Ajax is now a standard way to perform Ajax requests. It has its advantages and disadvantages, and we build a sample plugin to show it off.

Introduction to the WordPress REST API

By Ronald | January 19, 2020 | 0 Comments

The REST API is an alternative to Admin Ajax. It is a programming-language agnostic way of interacting with WordPress data and is more structured.

Creating a Gutenberg Block for Voting Tally

By Ronald | January 26, 2020 | 0 Comments

This chapter covers setting up Node and NPM. It shows how to add Create Guten Block to an existing plugin, and how to create a few Gutenberg blocks.

***

Subscribe to Updates Below:

Scroll to Top