wp_footer()

action wp_footer()

Kích hoạt hành động wp_footer.

function wp_footer() {
	/**
	 * Prints scripts or data before the closing body tag on the front end.
	 *
	 * @since 1.5.1
	 */
	do_action( 'wp_footer' );
}
Ví dụ 1: Thêm mã javascript vào chân trang trang web của mình.
function wpdocs_js_code_example() {
	?>
	
	<?php
}
add_action( 'wp_footer', 'wpdocs_js_code_example' );
//Thêm script vào footer