WC_Helper_API_Backoff::is_refresh_request │ public static │ WC 1.0

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 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' );
}