Automattic\WooCommerce\Admin\API
MobileAppQRLogin::check_invalid_exchange_rate_limit
Check rate limit for random/nonexistent exchange tokens.
Method of the class: MobileAppQRLogin{}
No Hooks.
Returns
true|false. True if within rate limit.
Usage
// private - for code of main (parent) class only $result = $this->check_invalid_exchange_rate_limit();
MobileAppQRLogin::check_invalid_exchange_rate_limit() MobileAppQRLogin::check invalid exchange rate limit code WC 11.0.1
private function check_invalid_exchange_rate_limit() {
return QRLoginRateLimits::consume( QRLoginRateLimits::BUCKET_INVALID_EXCHANGE, $this->get_client_ip() );
}