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 3066
do_action( 'wp_footer' );

Where the hook is used in WordPress

wp-includes/block-supports/duotone.php 53
add_action( 'wp_footer', array( 'WP_Duotone', 'output_footer_assets' ), 10 );
wp-includes/blocks/image.php 217
add_action( 'wp_footer', 'block_core_image_print_lightbox_overlay' );
wp-includes/class-wp-customize-manager.php 1944
add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 );
wp-includes/class-wp-customize-nav-menus.php 1351
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1 );
wp-includes/class-wp-customize-widgets.php 1193
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 351
add_action( 'wp_footer', 'wp_print_footer_scripts', 20 );
wp-includes/default-filters.php 600
add_action( 'wp_footer', 'wp_enqueue_global_styles', 1 );
wp-includes/default-filters.php 607
add_action( 'wp_footer', 'wp_enqueue_stored_styles', 1 );
wp-includes/default-filters.php 613
add_action( 'wp_footer', 'wp_maybe_inline_styles', 1 ); // Run for late-loaded styles in the footer.
wp-includes/default-filters.php 665
add_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); // Back-compat for themes not using `wp_body_open`.
wp-includes/default-filters.php 721
add_action( 'wp_footer', 'the_block_template_skip_link' ); // Retained for backwards-compatibility. Unhooked by wp_enqueue_block_template_skip_link().
wp-includes/interactivity-api/class-wp-interactivity-api.php 210
add_action( 'wp_footer', array( $this, 'print_client_interactivity_data' ) );
wp-includes/interactivity-api/class-wp-interactivity-api.php 899
add_action( 'wp_footer', array( $this, 'print_router_loading_and_screen_reader_markup' ) );
wp-includes/media.php 2870
add_action( 'wp_footer', 'wp_underscore_playlist_templates', 0 );
wp-includes/media.php 4949
add_action( 'wp_footer', 'wp_print_media_templates' );
wp-includes/theme-templates.php 116
remove_action( 'wp_footer', 'the_block_template_skip_link' );