The Lightweight Affiliate Tracking Add On for Paid Memberships Pro creates unique affiliate codes assigned to your affiliate users.
By default, admins can view active affiliates under the Memberships > Affiliates admin page. This page shows the name, user, affiliate code, whether or not the affiliate is enabled, conversions and visits.
In this code recipe, we show you how to add a new column to the Affiliates dashboard that contains the affiliate’s membership level (if active).
Table of contents
About the Code Recipe
This recipe adds a column to the Affiliates dashboard page to show what membership level the affiliate has (if active).
The Code Recipe (PHP)
Adding the Recipe to Your Website
You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.
If you have other data you’d like to show on this dashboard, such as the user’s join date or their website URL, you can duplicate line 21 to add additional columns. Then, adjust the second function to add your additional data to each affiliate row.
Free Course: Membership Site Development—The Basics
Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.