On this page
do_action( 'get_sidebar', string|null $name, array $args )
Fires before the sidebar template file is loaded.
Parameters
$namestring|null-
Name of the specific sidebar file to use. Null for the default sidebar.
$argsarray-
Additional arguments passed to the sidebar template.
Source
File: wp-includes/general-template.php. View all references
do_action( 'get_sidebar', $name, $args );
Related
Used By
| Used By | Description |
|---|---|
| get_sidebar() wp-includes/general-template.php | Loads sidebar template. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_sidebar