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

Fires before the sidebar template file is loaded.


Parameters

$name

Name of the specific sidebar file to use. null for the default sidebar.


Source

File: wp-includes/general-template.php

View on GitHub



Changelog

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