View Categories

Disable Points for Specific Products

You can disable points earning for specific products using the wpgens_loyalty_disable_product_points filter:

add_filter('wpgens_loyalty_disable_product_points', function($disabled, $product_id) {
    // Disable points for product ID 123
    if ($product_id === 123) {
        return true;
    }

    // Or disable points for products in a specific category
    if (has_term('no-points', 'product_cat', $product_id)) {
        return true;
    }

    return $disabled;
}, 10, 2);

This filter allows you to:

  • Disable points for specific product IDs
  • Disable points for products in certain categories
  • Disable points based on any custom logic you need

The filter receives two parameters:

  • $disabled (boolean): Current disabled status
  • $product_id (int): The product ID to check

Return true to disable points for the product, false to allow points.

What they say

Trusted by 7000+ customers

Our plugins are used by more than 7000 websites across the globe. All of our plugins are rated 5 stars on WordPress.org. Don’t just take our word for it, check what others are saying about WPGens.

I bought and tested the plugin with WooCommerce Subscription and it works like a charm. I had some specific questions to the developer and he responded very fast and helped me. I suggest the plugin!

Refer a Friend PREMIUM
@rinpocse91

If your looking to set up a referral program on your WooCommerce site to boost up your site sale “Refer A Friend for WooCommerce by WPGens” is your plugin to go for. Little blown away with an amazing support provided from (Goran) the plugin working exactly what you want to set up a referral system. Good job guys!

Refer a Friend PREMIUM
@samroon007

We deal with dozens of applications and plugins on a daily basis. Many of them are excellent, but few have truly excellent support. The Refer A Friend plugin is one of them: the response to my questions is always fast, friendly and very helpful.

Refer a Friend PREMIUM
@smartDIYer

This plugin is awesome. It looks good, it’s light weight, has great support – everything you can expect from a paid plugin, only it’s free!!!!

Swifty Bar
@ofirbeigel

Read all testimonials on WordPress Repository.

Get notified when we add new plugins.

We do not publish plugins often, but when we do, it's something awesome. No spam, we promise.

bool(false)