!
也想出现在这里? 联系我们
广告位
当前位置:首页>开发>WordPress开发手册>WordPress函数手册>WordPress函数文档get_404_template()

WordPress函数文档get_404_template()

获取404模版文件404.php 描述 译文 检索当前模板或父模板的404模板路径 原文 Retrieve p…--由S9社区整理

获取404模版文件404.php

描述

译文

检索当前模板或父模板的404模板路径

原文

Retrieve path of 404 template in current or parent template.

用法

<?php get_404_template(); ?>

参数

None.

返回值

(string) 

Returns result from get_query_template(‘404’).

注意

使用到: get_query_template()

历史

添加于 版本: 1.5.0

源文件

get_404_template() 函数的代码位于 wp-includes/template.php (for v3.3.3 and below function 函数的代码位于 wp-includes/theme.php).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

/* ———————————-
* wordpress函数 kim收集
* ———————————- */
/**
* Retrieve path of 404 template in current or parent template.
*
* The template path is filterable via the dynamic {@see ‘$type_template’} hook,
* e.g. ‘404_template’.
*
* @since 1.5.0
*
* @see get_query_template()
*
* @return string Full path to 404 template file.
*/

function get_404_template() {

return get_query_template(‘404’);

}

原文:http://codex.wordpress.org/Function_Reference/get_404_template

给TA打赏
共{{data.count}}人
人已打赏
WordPress函数手册

WordPress函数文档fix_phpmailer_messageid()

2023-6-16 19:39:21

WordPress函数手册

WordPress函数文档get_approved_comments()

2023-6-16 19:40:07

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:林沐阳 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索