Skip to content

Instantly share code, notes, and snippets.

View curiopraxis's full-sized avatar

CurioPraxis curiopraxis

  • California
View GitHub Profile

Keybase proof

I hereby claim:

  • I am curiopraxis on github.
  • I am curiopraxis (https://keybase.io/curiopraxis) on keybase.
  • I have a public key ASA4zZ0otC12-LfPlgVwBIYcQm9zYynVXCrUSUpfDLQa5go

To claim this, I am signing this object:

@curiopraxis
curiopraxis / wc-disable-product-repeat-purchase.php
Last active July 18, 2016 16:36 — forked from bekarice/wc-disable-product-repeat-purchase.php
Disables Repeat Purchase for a particular WooCommerce product
<?php
/**
* Disables repeat purchase for the product
*
* @param bool $purchasable true if product can be purchased
* @param \WC_Product $product the WooCommerce product
* @return bool $purchasable the updated is_purchasable check
*/
function sv_disable_repeat_purchase( $purchasable, $product ) {