wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_handle_404 › WordPress Filter Hooks

Since4.5.0
Deprecatedn/a
apply_filters( 'pre_handle_404', false, $wp_query )
Parameters: (2)
  • (bool) $preempt Whether to short-circuit default header status handling. Default false.
    Required: Yes
  • (WP_Query) $wp_query WordPress Query object.
    Required: Yes
Defined at:
Codex:

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.





Source

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