wp_footer()

Fire the wp_footer action.
Fire the 'wp_footer' action. Put this template tag immediately before </body> tag in a theme template (ex. footer.php, index.php).


add_action('wp_footer', 'my_function');


add_action('wp_footer', 'my_function1'); 

function my_function1( ) { 

    echo '<div style="display:none">My Text</div>'; 

}




https://developer.wordpress.org/reference/functions/wp_footer/
https://codex.wordpress.org/Function_Reference/wp_footer
https://codex.wordpress.org/Plugin_API/Action_Reference/wp_footer

Posted by cpu21