Add content to the footer. This function adds the code directly before the </body> tag.
</body>
add_to_footer( string $tag ) : void
$tag (string) (Required) HTML tag.
No value is returned.
add_to_footer('<script src="path/to/file.js"></script>');