Skip to main content

benecaster_get_footer()

Template Free
benecaster_get_footer( ?string $name = null ): void

The closing half of benecaster_get_header(), with the same three behaviours: the footer block template part on block themes, get_footer() on classic themes, and silence on themes that have no footer file. Use it in any outer template you override, in place of a direct get_footer() call.

Parameters

Name Type Default Required Description
$name string|null null No Optional specialised footer name, passed straight through to get_footer() on classic themes. Ignored on block themes.

Return Value

Type: void

Nothing. The footer markup is printed directly.

Example

<?php benecaster_get_footer(); ?>

Need this built rather than just documented? See our services →