WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp footer

Description

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

 <?php wp_footer(); ?> 

Parameters

This function does not accept any parameters.

Examples

In twentyten theme

wp-content/themes/twentyten/footer.php:

...
<?php
   /* Always have wp_footer() just before the closing </body>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to reference JavaScript files.
    */
    wp_footer();
?>
</body>
</html>

Notes

Change Log

  • Since: 1.5.1

Source File

wp_footer() is located in wp-includes/general-template.php.

Related

See also index of Function Reference and index of Template Tags.