get_comments_popup_template()
get_comments_popup_template() 在当前模板或父模板中检索注释弹出模板的路径。Ret…
get_comments_popup_template()
在当前模板或父模板中检索注释弹出模板的路径。
Retrieve path of comment popup template in current or parent template.
在当前模板或父模板中检索注释弹出模板的路径。
Retrieve path of comment popup template in current or parent template.
目录锚点:#返回#源码
返回(Return)
(string)注释弹出模板文件的完整路径。
源码(Source)
/**
* Retrieve path of comment popup template in current or parent template.
*
* Checks for comment popup template in current template, if it exists or in the
* parent template.
*
* The template path is filterable via the dynamic {@see '$type_template'} hook,
* e.g. 'commentspopup_template'.
*
* @since 1.5.0
*
* @see get_query_template()
*
* @return string Full path to comments popup template file.
*/
function get_comments_popup_template() {
$template = get_query_template( 'comments_popup', array( 'comments-popup.php' ) );
// Backward compat code will be removed in a future release.
if ('' == $template)
$template = ABSPATH . WPINC . '/theme-compat/comments-popup.php';
return $template;
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 4.5.0 | wp-includes/deprecated.php:3711 | 0 | 1 function |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!