120* @since 2.8.0 The `$name` parameter was added.121* @since 5.5.0 The `$args` parameter was added.122*123* @param string|null$name Name of the specific sidebar file to use.Nullfor the default sidebar.124* @param array$args Additional arguments passed to the sidebar template.125*/126do_action('get_sidebar',$name,$args);127128$templates=array();129$name=(string)$name;130if(''!==$name){131$templates[]="sidebar-{$name}.php";132}
History
Introduced in 2.2.0. Unchanged from 6.7.7 through 7.1.0.