WordPress: Action and Filter Hooks
1h 26mIntermediate2020-07-17
Authors

Carrie Dils
Development, WordPress
Course details
Action hooks and filters give developers the ability to extend and customize WordPress, the world's most popular content management system. This course teaches you how to write action and filter code to modify WordPress core, themes, and plugins. Instructor Carrie Dils explains how action hooks and filters work and shows how to leverage priorities, arguments, and conditionals for more precise control over when your code executes. Next, learn how to identify the available hooks and filters for different WordPress pages, invoke callback functions, and execute hooks. In the third chapter, Carrie introduces a start-to-finish project where she shows how to build a simple plugin with hooks and filters, and closes with some tips for using third-party developer hooks—and creating your own.
Topics include:
Actions and filters explained
Using arguments to pass data
Identifying available hooks and filters
Looking at load order and dependencies
Understanding callback functions
Registering and executing hooks in JavaScript
Creating a basic WordPress plugin with hooks and filters
Adding custom hooks
Using third-party hooks
Topics include:
Actions and filters explained
Using arguments to pass data
Identifying available hooks and filters
Looking at load order and dependencies
Understanding callback functions
Registering and executing hooks in JavaScript
Creating a basic WordPress plugin with hooks and filters
Adding custom hooks
Using third-party hooks
Skills covered
WordPressContent Management Systems (CMS)Web DevelopmentOpen SourceOne-Off
Concepts
0. Introduction
- 01 - Using hooks and filters with confidence
- 02 - What you should know
1. Understand Hooks and Filters
- 03 - What is WordPress
- 04 - The WordPress plugin API
- 05 - Action hooks explained
- 06 - Filters explained
- 07 - Changing execution order with priorities
- 08 - Using arguments to pass data
- 09 - Conditionals and context
2. Work with WordPress Hooks and Filters
- 10 - Finding references and documentation
- 11 - Identifying available hooks and filters
- 12 - A look at load order and dependencies
- 13 - Understanding callback functions
- 14 - Using apply filters
- 15 - Registering and executing hooks in JavaScript
3. Create a Basic Plugin Using Hooks and Filters
- 16 - A look at what you're building
- 17 - Scaffold a simple plugin
- 18 - Adding a custom style sheet
- 19 - Registering a sidebar
- 20 - Displaying a widget area on single posts
- 21 - Applying filters for loading style sheets
4. Work with Non-WordPress Hooks
- 22 - Adding custom hooks
- 23 - Inside themes and plugins with built-in hooks
- 24 - Tips for using third-party hooks
Conclusion
- 25 - Staying current with WordPress
- 26 - Next steps
Related courses
- No-Code Solutions for Web Sites and Apps
- Upgrading Legacy WordPress Projects: Modernize Workflows and Codebase
- Build and Manage a WordPress Multisite
- Custom WordPress Plugins: Design, Develop, and Distribute
- PHP for WordPress
- WordPress Essential Training
- WordPress: Mastering Full Site Editing
- Technical WordPress SEO