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

Where the hook is used in WordPress

wp-includes/block-supports/duotone.php 54
add_action( 'wp_footer', array( 'WP_Duotone', 'output_footer_assets' ), 10 );
wp-includes/blocks/image.php 249
add_action( 'wp_footer', 'block_core_image_print_lightbox_overlay' );
wp-includes/class-wp-customize-manager.php 1949
add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 );
wp-includes/class-wp-customize-nav-menus.php 1338
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1 );
wp-includes/class-wp-customize-widgets.php 1211
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 20 );
wp-includes/class-wp-script-modules.php 197
add_action( 'wp_footer', array( $this, 'print_script_module_data' ) );
wp-includes/class-wp-script-modules.php 199
add_action( 'wp_footer', array( $this, 'print_a11y_script_module_html' ), 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 355
add_action( 'wp_footer', 'wp_print_footer_scripts', 20 );
wp-includes/default-filters.php 605
add_action( 'wp_footer', 'wp_enqueue_global_styles', 1 );
wp-includes/default-filters.php 609
add_action( 'wp_footer', 'wp_enqueue_stored_styles', 1 );
wp-includes/default-filters.php 616
add_action( 'wp_footer', 'wp_maybe_inline_styles', 1 ); // Run for late-loaded styles in the footer.
wp-includes/default-filters.php 668
add_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); // Back-compat for themes not using `wp_body_open`.
wp-includes/default-filters.php 724
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 1099
add_action( 'wp_footer', array( $this, 'print_router_markup' ) );
wp-includes/media.php 2993
add_action( 'wp_footer', 'wp_underscore_playlist_templates', 0 );
wp-includes/media.php 5096
add_action( 'wp_footer', 'wp_print_media_templates' );
wp-includes/theme-templates.php 116
remove_action( 'wp_footer', 'the_block_template_skip_link' );