get_sidebar

Advertisement

Summery Summery

Fires before the sidebar template file is loaded.

Syntax Syntax

do_action( 'get_sidebar', string|null $name )

Parameters Parameters

$name

(string|null) Name of the specific sidebar file to use. null for the default sidebar.

Source Source

File: wp-includes/general-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 $name parameter added.
2.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.