apply_filters( ‘wp_redirect’, string $location, int $status )

In this article

Filters the redirect location.

Parameters

$locationstring
The path or URL to redirect to.
$statusint
The HTTP response status code to use.

Source

* @param int          $status        Optional. HTTP response status code to use. Default '302' (Moved Temporarily).

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

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