Restrict Content Pro Affiliate Program: Integration Guide | AffiliateBase

Create an Affiliate Program with Restrict Content Pro

Step-by-step guide to integrating affiliate tracking with your Restrict Content Pro site

Restrict Content Pro is a popular WordPress membership plugin that helps you create membership sites, restrict content, and manage subscriptions. If you're using Restrict Content Pro and want to grow through affiliate marketing, AffiliateBase provides seamless integration.

This comprehensive guide will walk you through everything you need to know about setting up an affiliate program with Restrict Content Pro, from plugin installation to tracking membership sign-ups, renewals, and subscription changes.

Whether you're selling premium content, online courses, or subscription memberships, an affiliate program can help you acquire new members while rewarding your partners for successful referrals.

Follow these steps to integrate AffiliateBase with Restrict Content Pro:

1

Install AffiliateBase WordPress Plugin

Install and activate the AffiliateBase plugin in your WordPress admin dashboard. The plugin includes built-in Restrict Content Pro integration.
2

Connect Your AffiliateBase Account

Navigate to Settings > AffiliateBase in WordPress and enter your API key from your AffiliateBase dashboard.
3

Enable Restrict Content Pro Integration

In the AffiliateBase plugin settings, enable the Restrict Content Pro integration toggle. This will automatically track RCP transactions.
4

Configure Payment Gateway Webhooks

If using Stripe or PayPal with Restrict Content Pro, ensure your payment gateway webhooks are configured to send events to AffiliateBase for accurate tracking.
5

Set Up Commission Rules

Configure your commission structure in AffiliateBase dashboard. You can set different commission rates for different membership levels.
6

Test the Integration

Create a test membership purchase through Restrict Content Pro to verify that affiliate tracking is working correctly.

Custom Restrict Content Pro Integration Example

If you prefer a custom integration, here's how to track Restrict Content Pro transactions:

<?php
// Add to your theme's functions.php or custom plugin
// Track Restrict Content Pro membership sign-ups
add_action('rcp_membership_post_activate', 'affiliatebase_track_rcp_signup', 10, 2);

function affiliatebase_track_rcp_signup($membership_id, $membership) {
    // Get affiliate ID from cookie or URL parameter
    $affiliate_id = isset($_COOKIE['affiliate_id']) ? $_COOKIE['affiliate_id'] : null;
    
    if ($affiliate_id) {
        $api_key = get_option('affiliatebase_api_key');
        $user_id = $membership->get_user_id();
        $payment = $membership->get_last_payment();
        
        wp_remote_post('https://api.affiliatebase.com/track-conversion', [
            'headers' => [
                'Content-Type' => 'application/json',
                'Authorization' => 'Bearer ' . $api_key,
            ],
            'body' => json_encode([
                'affiliateId' => $affiliate_id,
                'type' => 'membership_signup',
                'amount' => $payment->amount,
                'currency' => $payment->currency,
                'customerId' => $user_id,
                'subscriptionId' => $membership->get_object_id(),
                'metadata' => [
                    'membership_id' => $membership_id,
                    'membership_level_id' => $membership->get_object_id(),
                    'payment_id' => $payment->id,
                ],
            ]),
        ]);
    }
}

// Track subscription renewals
add_action('rcp_recurring_payment_processed', 'affiliatebase_track_rcp_renewal', 10, 3);

function affiliatebase_track_rcp_renewal($membership, $payment_id, $amount) {
    // Get original affiliate from membership metadata
    $affiliate_id = get_user_meta($membership->get_user_id(), 'affiliatebase_affiliate_id', true);
    
    if ($affiliate_id) {
        // Track renewal conversion
        // Similar code as above but with type: 'membership_renewal'
    }
}

Why Use AffiliateBase with Restrict Content Pro?

AffiliateBase is the perfect solution for Restrict Content Pro site owners who want powerful affiliate tracking.

Native RCP Integration

Built-in integration with Restrict Content Pro hooks and events. Automatically tracks membership sign-ups, renewals, and subscription changes.

Multiple Payment Gateway Support

Works with Stripe, PayPal, and other payment gateways supported by Restrict Content Pro. Tracks both one-time and recurring payments.

Subscription Lifecycle Tracking

Tracks subscription renewals, upgrades, downgrades, and cancellations. Ensures affiliates receive commissions for recurring revenue.

Multiple Membership Levels

Support for different commission rates based on membership tiers. Perfect for sites with multiple membership levels.

WordPress Plugin

Easy-to-use WordPress plugin with Restrict Content Pro integration built-in. No coding required for basic setup.

Affiliate Dashboard

Give your affiliates a professional dashboard to track their performance, view commissions, and generate affiliate links.

Frequently Asked Questions

Does AffiliateBase work with Restrict Content Pro?

Yes! AffiliateBase has native integration with Restrict Content Pro through our WordPress plugin. It automatically tracks membership sign-ups, renewals, and subscription changes.

How are subscription renewals tracked?

AffiliateBase tracks Restrict Content Pro subscription renewals automatically. When a member's subscription renews, the original affiliate receives commission for the renewal, ensuring they're rewarded for recurring revenue.

Does it work with Stripe and PayPal?

Yes! AffiliateBase integrates with all payment gateways supported by Restrict Content Pro, including Stripe, PayPal, and others. It tracks both one-time payments and recurring subscriptions.

Can I set different commission rates for different membership levels?

Yes! You can configure different commission structures in AffiliateBase based on membership level or any other criteria. This gives you full control over your affiliate program.

Do I need to modify my Restrict Content Pro checkout?

No, the integration works automatically with Restrict Content Pro's standard checkout flow. AffiliateBase captures affiliate IDs from cookies or URL parameters and tracks conversions when transactions complete.

What happens when a member upgrades or downgrades?

AffiliateBase tracks membership changes and adjusts commissions accordingly. The original affiliate maintains attribution, and commissions are calculated based on the new membership level.

Ready to Launch Your Restrict Content Pro Affiliate Program?

Get started with AffiliateBase today and start growing your membership site through affiliate marketing.