Home
Articles
Get the mini-course
Hooks Course Lesson 4 Quiz
First Name
Email
(Required)
Which function is used to create an action?
(Required)
do_action
apply_filter
add_action
add_hook_action
What is a good practice when deciding what to name a custom hook?
(Required)
Make sure the name is really short
If you know what it means then it’s good
Choose a name that most clearly expresses what the action does
Make sure the name always starts with “custom”
What function is used to create a custom filter?
(Required)
apply_filters
do_action
add_hook_filter
do_filter
What type of data might make sense to include as an optional argument for a custom filter?
(Required)
The title of your site
What type of database your site uses
The ID of whatever post the data came from
How many pages your site has
Any data used to determine the filtered value
The type of hook
How many arguments can you add to a custom hook?
(Required)
1
3
10
As many as you like
Δ