wphooks.info - get_footer

get_footer

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/general-template.php:
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
 */
function get_footer( $name = null ) {
	/**
	 * Fires before the footer template file is loaded.
	 *
	 * @since 2.1.0
	 * @since 2.8.0 $name parameter added.
	 *
	 * @param string|null $name Name of the specific footer file to use. null for the default footer.
	 */
	do_action( 'get_footer', $name );

	$templates = array();
	$name = (string) $name;
	if ( '' !== $name ) {
		$templates[] = "footer-{$name}.php";
	}

	$templates[]    = 'footer.php';