wp_footer() WordPress Function

The wp_footer() function is used to call the required code in the footer of a WordPress site. This function is typically called by the footer.php template file.

wp_footer() #

Fire the wp_footer action.


Description

See ‘wp_footer’.


Top ↑

Source

File: wp-includes/general-template.php

function wp_footer() {
	/**
	 * Prints scripts or data before the closing body tag on the front end.
	 *
	 * @since 1.5.1
	 */
	do_action( 'wp_footer' );
}


Top ↑

Changelog

Changelog
VersionDescription
1.5.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More