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.
$preemptbool
$wp_queryWP_Query
if ( false !== apply_filters( 'pre_handle_404', false, $wp_query ) ) {
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_handle_404