Automattic\WooCommerce\Admin\API

MobileAppQRLogin::check_invalid_scan_rate_limitprivateWC 1.0

Check rate limit for random/nonexistent scan 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_scan_rate_limit();

MobileAppQRLogin::check_invalid_scan_rate_limit() code WC 11.0.1

private function check_invalid_scan_rate_limit() {
	return QRLoginRateLimits::consume( QRLoginRateLimits::BUCKET_INVALID_SCAN, $this->get_client_ip() );
}