WordPress at a glance
action is not described

get_sidebar action-hook . WP 2.2.0

Fires before the sidebar template file is loaded.


add_action( 'get_sidebar', 'action_function_name_6772' );
function action_function_name_6772( $name ){
	// action...
Name of the specific sidebar file to use. null for the default sidebar.


  • Since 2.8.0 $name parameter added.

Where the hook is called

wp-includes/general-template.php 101
do_action( 'get_sidebar', $name );

Where the hook is used (in WP core)

Does not used.