- Introduction to WordPress Plugin Development 101
- Plugin Development 101 – What Makes a Plugin?
- Plugin Development 101 – General Best Practices
- Plugin Development 101 – An Intro to Filters
- Plugin Development 101 – Intro to Actions
- Plugin Development 101 – Registering a Custom Post Type
- Plugin Development 101 – Intro to Short Codes
- Plugin Development 101 – Intro to Loading Scripts and Styles
- Plugin Development 101 – Introduction to Adding Dashboard Menus
- Plugin Development 101 – Separating Your Plugin into Multiple Files
- Plugin Development 101 – Your First OOP Plugin
In this part of Plugin Development 101 we take a look at another of the most important tools plugin developers use every day: actions. Just like filters, the presence of actions throughout WordPress are one of the elements that make plugin development possible, so having a good understanding of what they are and how they work is extremely important.
Actions are a method in WordPress that allows developers to “hook” into points an execute code. For example, when a post is published in WordPress there is a hook that can be used to trigger additional functions that you want to execute at the same time, perhaps to send an email notification of the new post.
I will leave the extended explanation of actions to the video, but here are a few links that help to illustrate what actions are and how to use them:
- Plugins API
- Quick Introduction to Action Hooks
- The Beginner’s Guide to WordPress Actions and Filters