WC_Helper_API_Backoff::is_refresh_request
Whether the current request is a manual Marketplace refresh.
Метод класса: WC_Helper_API_Backoff{}
Хуков нет.
Возвращает
bool.
Использование
$result = WC_Helper_API_Backoff::is_refresh_request(): bool;
Код WC_Helper_API_Backoff::is_refresh_request() WC Helper API Backoff::is refresh request WC 11.2.2
public static function is_refresh_request(): bool {
$request_uri = wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
return false !== stripos( (string) $request_uri, 'wc/v3/marketplace/refresh' );
}