get_footer хук-событиеWP 2.1.0

Fires before the footer template file is loaded.

Использование

add_action( 'get_footer', 'wp_kama_get_footer_action', 10, 2 );

/**
 * Function for `get_footer` action-hook.
 * 
 * @param string|null $name Name of the specific footer file to use. Null for the default footer.
 * @param array       $args Additional arguments passed to the footer template.
 *
 * @return void
 */
function wp_kama_get_footer_action( $name, $args ){

	// action...
}
$name(строка|null)
Name of the specific footer file to use. Null for the default footer.
$args(массив)
Additional arguments passed to the footer template.

Список изменений

С версии 2.1.0 Введена.
С версии 2.8.0 The $name parameter was added.
С версии 5.5.0 The $args parameter was added.

Где вызывается хук

get_footer()
get_footer
wp-includes/general-template.php 82
do_action( 'get_footer', $name, $args );

Где используется хук в WordPress

Использование не найдено.