-
Take the next step in WordPress development. Learn how to work with action and filter hooks and use them to create WordPress plugins.
Hooks are key components of WordPress plugin development. There are two types: filters modify data and actions perform tasks. Gain a fundamental understanding of how these features work, and learn how to use the built-in action and filter hooks in WordPress to build your own plugins. In the first half of the course, instructor Carrie Dils reviews the plugin API and demonstrates the basics of actions and filters. Already familiar with these core concepts? Skip to chapter three, where she covers what you need to make your own hooks. Learn about load order and writing callback functions, and using third-party hooks. Last but not least, Carrie builds a demo plugin that shows practical real-world uses for actions and filters.
Overview
Syllabus
-
Introduction
- Welcome
- What you should know
- Exercise files
- What is WordPress?
- What is the Plugin API?
- Action hooks explained
- Filters explained
- Priorities
- Arguments
- Customizing the WordPress login page
- Adding a custom stylesheet
- Filtering login error messages
- Removing the login page shake
- Finding references and documentation
- Identifying available hooks and filters
- A look at load order
- Understanding callback functions
- Using apply_filters
- WP_Hook vs. $wp_filter
- Adding custom hooks
- Inside themes and plugins with hooks
- Tips for using third-party hooks
- A look at what you're building
- Setting up the folder and file structure
- Registering a sidebar
- Displaying a sidebar on single posts
- Applying filters for loading stylesheets
- Putting it all together
- Stay up to date with WordPress development
- Next steps