The 'init' hook runs early after WordPress loads but before headers are sent. It is commonly used to register custom post types, taxonomies, and perform initialization tasks.
add_action('wp_footer', function() { echo 'Footer message
'; });What will appear on the page?
add_action('wp_footer', function() { echo '<p>Footer message</p>'; });
The 'wp_footer' hook is triggered just before the closing