woocommerce_store_api_rate_limit_exceeded

woocommerce_store_api_rate_limit_exceeded

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.7.2.2

do_action('woocommerce_store_api_rate_limit_exceeded') is found 1 times:

  • /packages/woocommerce-blocks/src/StoreApi/Authentication.php line 51
    				$server->send_header( 'RateLimit-Remaining', 0 );
    				$server->send_header( 'RateLimit-Reset', time() + $retry );
    
    				$ip_address = $ip_address ?? self::get_ip_address( $rate_limiting_options->proxy_support );
    				do_action( 'woocommerce_store_api_rate_limit_exceeded', $ip_address );
    
    				return new \WP_Error(
    					'rate_limit_exceeded',
    					sprintf(
    						'Too many requests. Please wait %d seconds before trying again.',
    						$retry