関数 get_query_template()
2014/12/17
関数 get_query_template()
定義ファイル :/blog/wp-includes/template.php
1 2 3 4 5 6 7 8 9 10 11 | <?php function get_query_template( $type, $templates = array() ) { $type = preg_replace( '|[^a-z0-9-]+|', '', $type ); if ( empty( $templates ) ) $templates = array("{$type}.php"); $template = locate_template( $templates ); return apply_filters( "{$type}_template", $template ); } |