Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • oliverfritsch

    (@oliverfritsch)

    Brilliant, works like a charm, thanks! I use Code Snippets to actually put it on my website. Chat GPT recommended in addition to add is_admin so it only runs on the dashboard?

    if ( is_admin() ) {
    add_filter('pre_http_request', function ($pre, $args, $url) {
    // If the request is going to layered.market, block it
    if (strpos($url, 'layered.market') !== false) {
    return new WP_Error(
    'layered_market_blocked',
    'Blocked slow request to layered.market'
    );
    }

    // For all other URLs, do nothing
    return $pre;
    }, 10, 3);
    }

    Hallo Andreas,

    wie schauts aus? Die Fehlermeldungen kommen immer noch, nur bei PHP 7,0 — hat das irgendwelche Nachteile für die Kunden, oder dass die Zahlungen dann nicht durchgehen, wenn wir 7.2 trotzdem verwenden?

    Was sagen denn die schlafmützigen Entscheider von PayPal dazu?

    Beste Grüße
    Oliver

Viewing 2 replies - 1 through 2 (of 2 total)