get_footer
Fires before the footer template file is loaded.
Usage
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(string|null)
- Name of the specific footer file to use. Null for the default footer.
- $args(array)
- Additional arguments passed to the footer template.
Changelog
| Since 2.1.0 | Introduced. |
| Since 2.8.0 | The $name parameter was added. |
| Since 5.5.0 | The $args parameter was added. |
Where the hook is called
get_footer
wp-includes/general-template.php 82
do_action( 'get_footer', $name, $args );