WC_Download_Handler::download_error PHP Méthode

download_error() private static méthode

Die with an error message if the download fails.
private static download_error ( string $message, string $title = '', integer $status = 404 )
$message string
$title string
$status integer
    private static function download_error($message, $title = '', $status = 404)
    {
        if (!strstr($message, '<a ')) {
            $message .= ' <a href="' . esc_url(wc_get_page_permalink('shop')) . '" class="wc-forward">' . __('Go to shop', 'woocommerce') . '</a>';
        }
        wp_die($message, $title, array('response' => $status));
    }