wp_safe_redirect_fallback WordPress Filter Hook

The wp_safe_redirect_fallback Wordpress hook is used to handle situations where a safe redirect cannot be performed. This can happen when the URL to be redirected to is not valid, or when the domain of the URL is not on the allowed list. When this happens, the fallback URL is used instead.

apply_filters( 'wp_safe_redirect_fallback', string $fallback_url, int $status ) #

Filters the redirect fallback URL for when the provided redirect is not safe (local).


Parameters

$fallback_url

(string)The fallback URL to use by default.

$status

(int)The HTTP response status code to use.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.