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

Where the hook is used in WordPress

wp-includes/class-wp-customize-manager.php 1934
add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 );
wp-includes/class-wp-customize-nav-menus.php 1325
add_filter( 'wp_footer', array( $this, 'export_preview_data' ), 1 );
wp-includes/class-wp-customize-widgets.php 1172
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 20 );
wp-includes/customize/class-wp-customize-selective-refresh.php 157
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1000 );
wp-includes/default-filters.php 342
add_action( 'wp_footer', 'wp_print_footer_scripts', 20 );
wp-includes/default-filters.php 575
add_action( 'wp_footer', 'wp_enqueue_global_styles', 1 );
wp-includes/default-filters.php 585
add_action( 'wp_footer', 'wp_maybe_inline_styles', 1 ); // Run for late-loaded styles in the footer.
wp-includes/default-filters.php 626
add_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); // Back-compat for themes not using `wp_body_open`.
wp-includes/default-filters.php 679
add_action( 'wp_footer', 'the_block_template_skip_link' );
wp-includes/media.php 2607
add_action( 'wp_footer', 'wp_underscore_playlist_templates', 0 );
wp-includes/media.php 4634
add_action( 'wp_footer', 'wp_print_media_templates' );