wp_footer action-hookWP 1.5.1

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

Usage

add_action( 'wp_footer', 'wp_kama_footer_action' );

/**
 * Function for `wp_footer` action-hook.
 * 
 * @return void
 */
function wp_kama_footer_action(){

	// action...
}

Changelog

Since 1.5.1 Introduced.

Where the hook is called

wp_footer()
wp_footer
wp-includes/general-template.php 3059
do_action( 'wp_footer' );

Where the hook is used in WordPress

wp-includes/class-wp-customize-manager.php 1935
add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 );
wp-includes/class-wp-customize-nav-menus.php 1326
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1 );
wp-includes/class-wp-customize-widgets.php 1173
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 20 );
wp-includes/customize/class-wp-customize-selective-refresh.php 158
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1000 );
wp-includes/default-filters.php 343
add_action( 'wp_footer', 'wp_print_footer_scripts', 20 );
wp-includes/default-filters.php 578
add_action( 'wp_footer', 'wp_enqueue_global_styles', 1 );
wp-includes/default-filters.php 582
add_action( 'wp_footer', 'wp_enqueue_stored_styles', 1 );
wp-includes/default-filters.php 592
add_action( 'wp_footer', 'wp_maybe_inline_styles', 1 ); // Run for late-loaded styles in the footer.
wp-includes/default-filters.php 633
add_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); // Back-compat for themes not using `wp_body_open`.
wp-includes/default-filters.php 686
add_action( 'wp_footer', 'the_block_template_skip_link' );
wp-includes/media.php 2683
add_action( 'wp_footer', 'wp_underscore_playlist_templates', 0 );
wp-includes/media.php 4739
add_action( 'wp_footer', 'wp_print_media_templates' );