get_404_template

函数
get_404_template ( No parameters )
返回值
  • (string) Full path to 404 template file.
相关
  • get_query_template()
定义位置
相关方法
get_templateget_tag_templateget_page_templateget_date_templateget_home_template
引入
1.5.0
弃用
-

get_404_template: 这个函数用来获取404模板文件的路径,当一个页面或文章无法找到时,就会使用这个文件。

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

模板层次和模板路径可通过{@see ‘$type_template_hierarchy’}和{@see ‘$type_template’}动态钩子过滤,其中`$type`为’404’。

function get_404_template() {
	return get_query_template( '404' );
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 17:32:57

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: