apply_filters( ‘pre_handle_404’, bool $preempt, WP_Query $wp_query )

In this article

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

$preemptbool
Whether to short-circuit default header status handling. Default false.
$wp_queryWP_Query
WordPress Query object.

Source

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

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.