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

Fires before the sidebar template file is loaded.


Parameters

$name string|null
Name of the specific sidebar file to use. Null for the default sidebar.
$args array
Additional arguments passed to the sidebar template.

Top ↑

Source

File: wp-includes/general-template.php. View all references

do_action( 'get_sidebar', $name, $args );


Top ↑

Changelog

Changelog
Version Description
5.5.0 The $args parameter was added.
2.8.0 The $name parameter was added.
2.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.