get_sidebar

SummerySummery

Load sidebar template.

Syntax

get_sidebar( string $name = null )

DescriptionDescription

Includes the sidebar template for a theme or if a name is specified then a specialised sidebar will be included.

For the parameter, if the file is called "sidebar-special.php" then specify "special".

ParametersParameters

$name

(string) (Optional) The name of the specialised sidebar.

Default value: null

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
1.5.0 Introduced.
Scroll to Top