get_sidebar, $name, $args

get_sidebar, $name, $args

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: 7.0.3

do_action('get_sidebar, $name, $args') is found 1 times:

  • /wp-includes/general-template.php line 126
    	 *
    	 * @param string|null $name Name of the specific sidebar file to use. Null for the default sidebar.
    	 * @param array       $args Additional arguments passed to the sidebar template.
    	 */
    	do_action( 'get_sidebar', $name, $args );
    
    	$templates = array();
    	$name      = (string) $name;
    	if ( '' !== $name ) {
    		$templates[] = "sidebar-{$name}.php";
    	}