Always use https for webhook urls

Paypal allows only https
This commit is contained in:
Alex P 2021-10-12 12:19:15 +03:00
parent d6aa1166f1
commit 295ecb91ff

View file

@ -230,7 +230,11 @@ class IncomingWebhookEndpoint {
* @return string
*/
public function url(): string {
return rest_url( self::NAMESPACE . '/' . self::ROUTE );
$url = rest_url( self::NAMESPACE . '/' . self::ROUTE );
$url = str_replace( 'http://', 'https://', $url );
return $url;
}
/**