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.
Hey... hey you... yes you!... Having a good time? Learning new things? Good!
More coming soon…keep checking back.