Home
Articles
Get the mini-course
Lesson #2 Actions
Ready to test your knowledge? Complete the quiz below and submit to see your answers.
First Name
Email
(Required)
Which function is used to add a new action callback function?
(Required)
add_hook
add_action
What core WordPress action is used to output stylesheets or scripts?
(Required)
wp_add_assets
wp_enqueue_assets
wp_add_scripts
wp_enqueue_scripts
Which of the following statements about actions is true?
(Required)
Actions let you modify an existing value
All actions callback functions need to echo output
Actions can come from WordPress Core, a plugin, or a theme
Actions callback functions can only accept one argument
Which action should be used to run code when WordPress has mostly loaded?
(Required)
wp_loaded
init
after_theme_setup
completed
If you need to get the URL of a CSS or JS file in your theme, which function should be used?
(Required)
get_template_directory
get_stylesheet_uri
get_theme_file_uri
get_file_url
Δ