pre_handle_404

Advertisement

Summery Summery

Filters whether to short-circuit default header status handling.

Syntax Syntax

apply_filters( 'pre_handle_404', bool $preempt, WP_Query $wp_query )

Description Description

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

Parameters Parameters

$preempt

(bool) Whether to short-circuit default header status handling. Default false.

$wp_query

(WP_Query) WordPress Query object.

Source Source

File: wp-includes/class-wp.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.