get_date_template

函数


get_date_template ( No parameters )
返回值
  • (string) Full path to date template file.
相关
  • get_query_template()
定义位置
  • wp-includes/template.php
    , line 379
引入
1.5.0
弃用

Retrieves path of date template in current or parent template.

The template hierarchy and template path are filterable via the {@see ‘$type_template_hierarchy’}
and {@see ‘$type_template’} dynamic hooks, where `$type` is ‘date’.

function get_date_template() {
	return get_query_template( 'date' );
}