関数 get_header()
2014/12/25
関数 get_header()
定義ファイル :/blog/wp-includes/general-template.php 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?php function get_header( $name = null ) { do_action( 'get_header', $name ); $templates = array(); $name = (string) $name; if ( '' !== $name ) $templates[] = "header-{$name}.php"; $templates[] = 'header.php'; // Backward compat code will be removed in a future release if ('' == locate_template($templates, true)) load_template( ABSPATH . WPINC . '/theme-compat/header.php'); } |