do_action( 'get_footer', string|null $name )

Fires before the footer template file is loaded.


Description Description

The hook allows a specific footer template file to be used in place of the default footer template file. If your file is called footer-new.php, you would specify the filename in the hook as get_footer( ‘new’ ).


Parameters Parameters

$name

(string|null) Name of the specific footer file to use. null for the default footer.


Top ↑

Source Source

File: wp-includes/general-template.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 $name parameter added.
2.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.