wp_redirect

SummerySummery

Filters the redirect location.

Syntax

apply_filters( 'wp_redirect', string $location, int $status )

ParametersParameters

$location

(string) The path or URL to redirect to.

$status

(int) The HTTP response status code to use.

SourceSource

File: wp-includes/pluggable.php

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top