WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 73 | * Fires before the footer template file is loaded. |
| 74 | * |
| 75 | * @since 2.1.0 |
| 76 | * @since 2.8.0 The `$name` parameter was added. |
| 77 | * @since 5.5.0 The `$args` parameter was added. |
| 78 | * |
| 79 | * @param string|null $name Name of the specific footer file to use. Null for the default footer. |
| 80 | * @param array $args Additional arguments passed to the footer template. |
| 81 | */ |
| 82 | do_action( 'get_footer', $name, $args ); |
| 83 | |
| 84 | $templates = array(); |
| 85 | $name = (string) $name; |
| 86 | if ( '' !== $name ) { |
| 87 | $templates[] = "footer-{$name}.php"; |
| 88 | } |
| 89 | |
| 90 | $templates[] = 'footer.php'; |
| 91 | |