In this video, learn the difference between hooks, actions, and filters so you can better understand PHP code in WordPress.
- [Instructor] One of the most important ideas … in WordPress theme and plugin development are hooks. … You could say that this lesson is about actions and filters, … because actions and filters are two kinds of functions … that interact with WordPress hooks. … Understanding hooks isn't all that easy, … partly because the terms themselves … are rather tricky to visualize … and distinguish from one another. … But the payoff is huge. … As a developer, we find that … working with filters and actions … is probably the most common way … we interact with WordPress. … Let's start by defining some terms. … A hook is a place in WordPress's code … that invites other functions to add to it. … When you create a hook, you're giving yourself … and other developers the opportunity … to add in additional functionality at that location. … A hooked function is a custom PHP function … that we can hook into WordPress … at the locations specified by its hooks. … And there are two types. … The two types of hooked functions that exist …
- Setting up your development environment and editor
- Picking a parent theme
- Creating a child theme
- Including style sheets
- Creating and modifying styles
- Modifying functions
- Hooking functions
- Creating and modifying template files
- Adding menus and functionality
- Migrating theme files to a live WordPress site
Skill Level Intermediate
Using the exercise files1m 13s
1. Building on a Solid Foundation
2. Creating a Child Theme
3. Child Themes and CSS
4. Working with Function Files
5. Working with Template Files
6. Add New Functionality
7. Wrapping Up
Next steps1m 4s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.