1. 首页
  2. WordPress 函数手册

get_singular_template()

get_singular_template()

检索当前模板或父模板中单个模板的路径。
Retrieves the path of the singular template in current or parent template.

目录锚点:#说明#返回#源码


说明(Description)

另见函数 get_query_template()


返回(Return)

(string)单一模板文件的完整路径


源码(Source)


更新版本 源码位置 使用 被使用
4.3.0 wp-includes/template.php:584 0 1 function

get_singular_template() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_singular_template/