Skip to content
Affiliates Ranking system
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
affiliates-rankings.php
class-affiliates-rankings.php

README.md

Affiliates Rankings

Affiliates Rankings is a ranking system for promoting affiliates based on their performance.
Each rank is represented by a group and with Rates we can offer different commissions per group.
Each time an affiliate achieves the performance condition of the higher Rank, is automatically promoted to that next Rank.
The higher the rank, the better is the commission reward for the affiliate.

The plugin is compatible with Affiliates Pro and Affiliates Enterprise plugins by itthinx.com.

Requirements

Usage

Install and activate the plugin.
By default after activation, 6 new ranking groups will be added:
Rank 1, Rank 2, Rank 3, Rank 4, Rank 5, Rank 6
and 6 ranking conditions:
10, 20, 30, 40, 50, 60

Each time an affiliate registers throught the affiliates registration form, he will be added automatically to Rank 1.
In order to be promoted to the next rank, Rank 2, the affiliate must have referred at least 20 referrals and so on....

API

You can change the group names and promotion conditions by using the following filters:

Example

If you want to use 4 groups named Class 1, Class 2, Class 3, Class 4
with conditions 5, 10, 15, 20 respectively,
you should add the following snippets in the functions.php file of your active theme.

add_filter( 'affiliates_ranking_groups_names', 'example_affiliates_ranking_groups_names' );
function example_affiliates_ranking_groups_names( $names ) {
	$names = array( 'Class 1', 'Class 2', 'Class 3', 'Class 4' );
	return $names;
}
add_filter( 'affiliates_ranking_conditions', 'example_affiliates_ranking_conditions' );
function example_affiliates_ranking_conditions( $conditions ) {
	$conditions = array( 5, 10, 15, 20 );
	return $conditions;
}
You can’t perform that action at this time.