Action hook 'wp_footer'

in WP Core File wp-includes/general-template.php at line 3208

View Source

wp_footer

Action Hook
Description
Prints scripts or data before the closing body tag on the front end.

Hook Information

File Location wp-includes/general-template.php View on GitHub
Hook Type Action
Line Number 3208

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into wp_footer
add_action('wp_footer', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-includes/general-template.php:3208 - How this hook is used in WordPress core
<?php
3203  	/**
3204  	 * Prints scripts or data before the closing body tag on the front end.
3205  	 *
3206  	 * @since 1.5.1
3207  	 */
3208  	do_action( 'wp_footer' );
3209  }
3210  
3211  /**
3212   * Fires the wp_body_open action.
3213   *

PHP Documentation

<?php
/**
	 * Prints scripts or data before the closing body tag on the front end.
	 *
	 * @since 1.5.1
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/general-template.php
Related Hooks

Related hooks will be displayed here in future updates.