wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_handle_404 › WordPress过滤钩子

Since4.5.0
已弃用n/a
apply_filters( 'pre_handle_404', false, $wp_query )
参数: (2)
  • (bool) $preempt Whether to short-circuit default header status handling. Default false.
    Required: Yes
  • (WP_Query) $wp_query WordPress Query object.
    Required: Yes
定义在:
文档:

Filters whether to short-circuit default header status handling.

Returning a non-false value from the filter will short-circuit the handling and return early.





源码

if ( false !== apply_filters( 'pre_handle_404', false, $wp_query ) ) {