Challenge - 5 Problems
WordPress Hooks Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ component_behavior
intermediate2:00remaining
What is the output of this add_action example?
Consider this WordPress code snippet. What will be printed on the page when the 'wp_footer' action runs?
Wordpress
<?php
function show_footer_message() {
echo '<p>Footer message here</p>';
}
add_action('wp_footer', 'show_footer_message');
?>Attempts:
2 left
💡 Hint
Think about when the 'wp_footer' action runs in WordPress page lifecycle.
✗ Incorrect
The 'wp_footer' action runs just before the closing