PHPackages                             craftpeak/woocommerce-prevent-repeat-purchases - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. craftpeak/woocommerce-prevent-repeat-purchases

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

craftpeak/woocommerce-prevent-repeat-purchases
==============================================

A WooCommerce plugin to prevent customers from purchasing products more than once. Only works with Simple products.

1.1.0(5y ago)61.3k[1 issues](https://github.com/Craftpeak/woocommerce-prevent-repeat-purchases/issues)GPL-3.0+PHP

Since Aug 15Pushed 5y ago11 watchersCompare

[ Source](https://github.com/Craftpeak/woocommerce-prevent-repeat-purchases)[ Packagist](https://packagist.org/packages/craftpeak/woocommerce-prevent-repeat-purchases)[ Docs](https://github.com/Craftpeak/woocommerce-prevent-repeat-purchases/)[ RSS](/packages/craftpeak-woocommerce-prevent-repeat-purchases/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (4)Used By (0)

WooCommerce Prevent Repeat Purchases
====================================

[](#woocommerce-prevent-repeat-purchases)

A WooCommerce plugin to prevent customers from purchasing products more than once.

**This only works with Simple products!!**

Requirements
------------

[](#requirements)

- WooCommerce
- PHP 7+ (not actually, but don't be *that* person)

Installation
------------

[](#installation)

`composer require craftpeak/woocommerce-prevent-repeat-purchases`

(or do it the old fashioned way)

Setup
-----

[](#setup)

For Simple products, there is a "Prevent Repeat Purchases?" checkbox in the "General" product metabox. If checked, customers will only be able to purchase the product once (per account). This works via the `wc_customer_bought_product`function, and is set on a product-by-product basis.

Customization
-------------

[](#customization)

If you would like to change the message showed to users when they can't make a repeat purchase, use the `wc_repeat_nonpurchaseable_message` filter, for example:

```
add_filter( 'wc_repeat_nonpurchaseable_message', function() {
  return "Ya can't have it AGAIN!";
} );
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~795 days

Total

2

Last Release

2080d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12038419?v=4)[Craftpeak](/maintainers/craftpeak)[@Craftpeak](https://github.com/Craftpeak)

---

Top Contributors

[![JulienMelissas](https://avatars.githubusercontent.com/u/2278221?v=4)](https://github.com/JulienMelissas "JulienMelissas (14 commits)")[![ksere](https://avatars.githubusercontent.com/u/4016167?v=4)](https://github.com/ksere "ksere (1 commits)")

---

Tags

wordpresswoocommerce

### Embed Badge

![Health badge](/badges/craftpeak-woocommerce-prevent-repeat-purchases/health.svg)

```
[![Health](https://phpackages.com/badges/craftpeak-woocommerce-prevent-repeat-purchases/health.svg)](https://phpackages.com/packages/craftpeak-woocommerce-prevent-repeat-purchases)
```

###  Alternatives

[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

953.3M93](/packages/php-stubs-woocommerce-stubs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
