The wp_footer() WordPress PHP function is used to trigger the wp_footer action, which allows developers to add custom scripts, styles, or other elements just before the closing </body>
tag of a WordPress site.
Usage
<body> <!-- All the document's HTML goes first. --> <!-- Then last, before closing the body tag, add: --> <?php wp_footer(); ?> </body>
Parameters
None
More information
See WordPress Developer Resources: wp_footer()