Title: CoCart &#8211; Rate Limiting
Author: CoCart Headless
Published: <strong>March 4, 2023</strong>
Last modified: July 26, 2024

---

Search plugins

![](https://ps.w.org/cocart-rate-limiting/assets/banner-772x250.jpg?rev=2874553)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/cocart-rate-limiting/assets/icon-256x256.png?rev=2874553)

# CoCart – Rate Limiting

 By [CoCart Headless](https://profiles.wordpress.org/cocartforwc/)

[Download](https://downloads.wordpress.org/plugin/cocart-rate-limiting.1.0.4.zip)

 * [Details](https://lin.wordpress.org/plugins/cocart-rate-limiting/#description)
 * [Reviews](https://lin.wordpress.org/plugins/cocart-rate-limiting/#reviews)
 *  [Installation](https://lin.wordpress.org/plugins/cocart-rate-limiting/#installation)
 * [Development](https://lin.wordpress.org/plugins/cocart-rate-limiting/#developers)

 [Support](https://wordpress.org/support/plugin/cocart-rate-limiting/)

## Description

Enables the rate limiting feature for [CoCart](https://cocartapi.com/?utm_medium=gh&utm_source=github&utm_campaign=readme&utm_content=cocart)
that is available in **CoCart Plus** and up.

Simply install and activate. **No configuration required!**

But if you want, you can change any of the options via your `wp-config.php` file.

★★★★★

> An excellent plugin, which makes building a headless WooCommerce experience a 
> breeze. Easy to use, nearly zero setup time. [Harald Schneider](https://wordpress.org/support/topic/excellent-plugin-8062/)

### Constants

These are the constants to use in your `wp-config.php` which will override the default
values.

    ```
    define( 'COCART_RATE_LIMITING_ENABLED', true );
    define( 'COCART_RATE_LIMITING_PROXY_SUPPORT', false );
    define( 'COCART_RATE_LIMITING_LIMIT', 25 );
    define( 'COCART_RATE_LIMITING_SECONDS', 10 );
    ```

[[See guide on Rate Limiting](https://cocart.dev/guide/rate-limiting-guide/#h-proxy-standard-support)]
for more advanced setup.

### 🧰 Developer Tools

 * **[CoCart Beta Tester](https://github.com/cocart-headless/cocart-beta-tester)**
   allows you to easily update to pre-release versions of CoCart Lite for testing
   and development purposes.
 * **[CoCart VSCode](https://github.com/cocart-headless/cocart-vscode)** extension
   for Visual Studio Code adds snippets and autocompletion of functions, classes
   and hooks.
 * **[CoCart Product Support Boilerplate](https://github.com/cocart-headless/cocart-product-support-boilerplate)**
   provides a basic boilerplate for supporting a different product types to add 
   to the cart with validation including adding your own parameters.
 * **[CoCart Cart Callback Example](https://github.com/cocart-headless/cocart-cart-callback-example)**
   provides you an example of registering a callback that can be triggered when 
   updating the cart.

★★★★★

> Amazing Plugin. I’m using it to create a react-native app with WooCommerce as 
> back-end. This plugin is a life-saver! [Daniel Loureiro](https://wordpress.org/support/topic/amazing-plugin-1562/)

#### 👍 Add-ons to further enhance CoCart

We also have other add-ons that extend CoCart to enhance your development and your
customers shopping experience.

 * **[CoCart – CORS](https://wordpress.org/plugins/cocart-cors/)** enables support
   for CORS to allow CoCart to work across multiple domains.
 * **[CoCart – Cart Enhanced](https://wordpress.org/plugins/cocart-get-cart-enhanced/)**
   enhances the data returned for the cart and the items added to it.
 * **[CoCart – JWT Authentication](https://wordpress.org/plugins/cocart-jwt-authentication/)**
   allows you to authenticate via a simple JWT Token.
 * and more add-ons in development.

They work with the core of CoCart already, and these add-ons of course come with
support too.

### ⌨️ Join our growing community

A Discord community for developers, WordPress agencies and shop owners building 
the fastest and best headless WooCommerce stores with CoCart.

[Join our community](https://cocartapi.com/community/?utm_medium=wp.org&utm_source=wordpressorg&utm_campaign=readme&utm_content=cocart)

### 🐞 Bug reports

Bug reports for CoCart – Rate Limiting Support are welcomed in the [CoCart – Rate Limiting repository on GitHub](https://github.com/cocart-headless/cocart-rate-limiting/issues).
Please note that GitHub is not a support forum, and that issues that aren’t properly
qualified as bugs will be closed.

### More information

 * The official [CoCart API plugin](https://cocartapi.com/?utm_medium=website&utm_source=wpplugindirectory&utm_campaign=readme&utm_content=readmelink)
   website.
 * [CoCart for Developers](https://cocart.dev/?utm_medium=website&utm_source=wpplugindirectory&utm_campaign=readme&utm_content=readmelink),
   an official hub for resources you need to be productive with CoCart and keep 
   track of everything that is happening with the API.
 * The CoCart [Documentation](https://docs.cocart.xyz/)
 * [Subscribe to updates](http://eepurl.com/dKIYXE)
 * Like, Follow and Star on [Facebook](https://www.facebook.com/cocartforwc/), [Twitter](https://twitter.com/cocartapi),
   [Instagram](https://www.instagram.com/cocartheadless/) and [GitHub](https://github.com/co-cart/co-cart)

#### 💯 Credits

This plugin is developed and maintained by [Sébastien Dumont](https://twitter.com/sebd86).

Founder of [CoCart Headless, LLC](https://twitter.com/cocartheadless).

## Installation

#### Minimum Requirements

 * WordPress v5.6
 * WooCommerce v6.3
 * PHP v7.4
 * CoCart Plus v1.3.0 or CoCart Pro.

#### Recommended Requirements

 * WordPress v6.0 or higher.
 * WooCommerce v7.0 or higher.
 * PHP v8.0 or higher.

#### Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers
itself and you don’t need to leave your web browser. To do an automatic install 
of CoCart – Rate Limiting Support, log in to your WordPress dashboard, navigate 
to the Plugins menu and click Add New.

In the search field type “CoCart” and click Search Plugins. Once you’ve found the
plugin you can view details about it such as the point release, rating and description.
Most importantly of course, you can install it by simply clicking “Install Now”.

#### Manual installation

The manual installation method involves downloading the plugin and uploading it 
to your webserver via your favourite FTP application. The WordPress codex contains
[instructions on how to do this here](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

#### Updating

Automatic updates should work like a charm; as always though, ensure you backup 
your site just in case.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“CoCart – Rate Limiting” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ CoCart Headless ](https://profiles.wordpress.org/cocartforwc/)
 *   [ Sébastien Dumont ](https://profiles.wordpress.org/sebd86/)

[Translate “CoCart – Rate Limiting” into your language.](https://translate.wordpress.org/projects/wp-plugins/cocart-rate-limiting)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/cocart-rate-limiting/),
check out the [SVN repository](https://plugins.svn.wordpress.org/cocart-rate-limiting/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/cocart-rate-limiting/)
by [RSS](https://plugins.trac.wordpress.org/log/cocart-rate-limiting/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

[View the full changelog here](https://github.com/cocart-headless/cocart-rate-limiting/blob/master/CHANGELOG.md).

## Meta

 *  Version **1.0.4**
 *  Last updated **2 years ago**
 *  Active installations **10+**
 *  WordPress version ** 5.6 or higher **
 *  Tested up to **6.6.5**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/cocart-rate-limiting/)
 * Tags
 * [decoupled](https://lin.wordpress.org/plugins/tags/decoupled/)[headless](https://lin.wordpress.org/plugins/tags/headless/)
   [rate limit](https://lin.wordpress.org/plugins/tags/rate-limit/)[rest-api](https://lin.wordpress.org/plugins/tags/rest-api/)
   [woocommerce](https://lin.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://lin.wordpress.org/plugins/cocart-rate-limiting/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/cocart-rate-limiting/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cocart-rate-limiting/reviews/)

## Contributors

 *   [ CoCart Headless ](https://profiles.wordpress.org/cocartforwc/)
 *   [ Sébastien Dumont ](https://profiles.wordpress.org/sebd86/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cocart-rate-limiting/)