Sometimes you have to add for example JavaScripts to the end of the site.
This function adds the code directly before the </body> tag.
This function adds the code directly before the </body> tag.
Quote
add_to_footer ( string $tag )
<?php
add_to_footer("<script type='text/javascript' src='counter.js'></script>");
?>