PHP code example of craftpeak / woocommerce-prevent-repeat-purchases

1. Go to this page and download the library: Download craftpeak/woocommerce-prevent-repeat-purchases library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

craftpeak / woocommerce-prevent-repeat-purchases example snippets


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