wp_safe_redirect_fallback filter-hook . WP 4.3.0
Filters the redirect fallback URL for when the provided redirect is not safe (local).
Usage
add_filter( 'wp_safe_redirect_fallback', 'filter_function_name_7451', 10, 2 ); function filter_function_name_7451( $fallback_url, $status ){ // filter... return $fallback_url; }
- $fallback_url(string)
- The fallback URL to use by default.
- $status(int)
- The HTTP response status code to use.
Changelog
Since 4.3.0 | Introduced. |
Where the hook is called
wp_safe_redirect_fallback
wp-includes/pluggable.php 1402
$location = wp_validate_redirect( $location, apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status ) );