当前浏览:首页 / WordPress函数 / is_404()

is_404()

确定查询是否产生404

is 条件判断more...


描述

更多类似的主题函数信息,请查看主题开发手册中的条件标签文章。


返回

(bool) 查询是否为404错误。



源码

查看源码 官方文档


更新日志

版本描述
1.5.0开始引入

使用示例

  • 示例1

    示例

    if ( is_404() ) {
    	// add search form so that users can search other posts
    }