apply_filters( 'pre_handle_404', bool $preempt , WP_Query $wp_query )
Filters whether to short-circuit default header status handling.
Description
Returning a non-false value from the filter will short-circuit the handling and return early.
Parameters
- $preempt
-
Whether to short-circuit default header status handling. Default false.
- $wp_query
-
ClassicPress Query object.
Source
File: wp-includes/class-wp.php
Changelog
Version | Description |
---|---|
WP-4.5.0 | Introduced. |