wp_safe_redirect_fallback

wp_safe_redirect_fallback

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

do_action('wp_safe_redirect_fallback') is found 1 times:

  • /wp-includes/pluggable.php line 1541
    		 *
    		 * @param string $fallback_url The fallback URL to use by default.
    		 * @param int    $status       The HTTP response status code to use.
    		 */
    		$fallback_url = apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status );
    
    		$location = wp_validate_redirect( $location, $fallback_url );
    
    		return wp_redirect( $location, $status, $x_redirect_by );
    	}
    endif;
    

See this hook used in plugins: