関数 get_single_template()
2014/12/17
関数 get_single_template()
定義ファイル :/blog/wp-includes/template.php
1 2 3 4 5 6 7 8 9 10 11 | function get_single_template() { $object = get_queried_object(); $templates = array(); if ( ! empty( $object->post_type ) ) $templates[] = "single-{$object->post_type}.php"; $templates[] = "single.php"; return get_query_template( 'single', $templates ); } |