The What
Description
This construct fires the event get_sidebar
and then locates the template to be loaded. If a specific template name was supplied when calling this function, it will search for sidebar-{$specific_template_name}.php
; else it searches for sidebar.php
. If the template is found, then it’s loaded; otherwise, WordPress loads the default theme template is loaded from wp-includes/theme-compat/header.php
.
Parameters
specific_template_name
- optional The name of the specific sidebar you want to find and load. Remember not to include “sidebar-“; rather, it’s just the partial name of the PHP file.
Return Values
This function does not return anything.
When was the last time you got out of your chair and stretched? Just saying…
More coming soon…keep checking back.