The What
Description
This construct fires the event get_footer
and then locates the template to be loaded. If a specific template name was supplied when calling this function, it will search for footer-{$specific_template_name}.php
; else it searches for footer.php
. If the template is found, then it’s loaded; otherwise, WordPress loads the default theme template is loaded from wp-includes/theme-compat/footer.php
.
Parameters
specific_template_name
- optional The name of the specific footer you want to find and load. Remember not to include “footer-“; rather, it’s just the partial name of the PHP file.
Return Values
This function does not return anything.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
More coming soon…keep checking back.