WP Referral Code

Plugin Banner

WP Referral Code

by shalior

Download
Description

WP Referral Code is a WordPress plugin that helps you generate a unique referral code for each of your users, enabling you to start your own version of referral marketing. Upon user registration, the plugin captures the refer code automatically. Additionally, WP Referral Code provides a user-friendly “copy refer link box” that allows users to easily copy and share their referral link.

This plugin is dependent only on the WordPress core and can be used with all other plugins. However, the logic after successful referral registration is up to you. To help with this, two important hooks are provided. For more information on how to use them, please refer to the plugin documentation, which can be found on the plugin website Documentation.

Several shortcodes are available to help you place things where they need to be. A list of these shortcodes can be found in the plugin options.

All information related to the referral status of a user can be found on the user edit page (Dashboard->Users->select a user). Here, you can view how many users the user has invited and who they were referred by.

note: on activation plugin will create refer codes for all of your users.

  1. Copy link shortcode example

    Copy link shortcode example

  2. Options page

    Options page

  3. List of shortcodes

    List of shortcodes

  4. Managing referrals in User edit page

    Managing referrals in User edit page

Works great with generatepress

By Vondelphia.com (vondelphia) on November 11, 2025

No complaints. Everything works as I wanted, and it's lightweight... I just copy a bunch of shortcodes and check things out and it works.

Update your plugin

By temibright on August 8, 2025

I installed this plug-in yesterday but unfortunately it really broke my site... please update your plugin... thanks

Simply Awesome

By liquid.ideas on August 2, 2023

Just logging in specifically to say thanks!

WORKS LIKE A CHARM!

By georgefivaz on April 29, 2023

I've been searching for a plugin that can do this forever! Thanks you so much! It works like a charm! Keep up the good work!

Saves a lot of time

By titouan13 on April 21, 2023

Wonderful plugin, especially if you're willing to use it as a base and add some code around. It has minimal functionalities but it can be all that you need.

PURE SHIT!

By jobbyboy on November 25, 2022

This plugin crashed my website.. for me is pure shit!

useful

By mohammadpoor on May 9, 2022

useful for me

Good plugin

By canhotro on March 21, 2021

The plugin is very potential but there are still many weaknesses that need improvement. Thanks to the author for creating this awesome plugin.

Light, fast & easy to use

By justaniceguy on January 21, 2021

If you need an easy member referral program for your site where you do not need bunch of options and features but only to keep track of referred members and to know which user has referred other members this plugin is the best solution you will find. It does exactly what it says. I have spent weeks in searching for such an easy solution since all others are robust, with ton of features which basically will never be used only complicating the setup and risking conflicts with other installed plugins. Not to mention that they are not free and often you need to register at 3rd party sites in order to have referrals being tracked. This little plugin does not require anything of that! What you might only need is a little knowledge of CSS styling in order to make links and lists displayed in more fancy, eye catchy way than it is by plugin default (in case you want that). By the way, plugin creator is kind and eager to help so don't hesitate to install and try it. Cheers

This is the one of the best Plugin for me

By masuditbusiness on May 10, 2020

This is the very Nice Plugin for me.....!!

1.4.12

  • minor fix to ensure default options are used

1.4.11

  • Add an option to hide referral info in users table
  • Make referral counts sortable in users table

1.4.10

  • UI enhancements.

1.4.9

  • Update styles to support more themes.

1.4.7

  • Redesign copy link box, fix minor bugs.

1.4.6

  • Minor fix to remove spaces around refer link in copy ref link box

1.4.5

  • Fix: Make more statements translatable.
  • Document: Add new shortcode to shortcodes list.

1.4.4

  • Feature: New shortcode [wp-referral-code var=”most_referring_users”] shows users with most referring

1.4.3

  • Fixed: Prevent submitting himself and already referred user.

1.4.2

  • Minor bug fix, correctly loading styles.

1.4.1

  • Add support for PHP 8.*

1.4.0

  • You can now manually add referral relation for users.
  • Check user edit page (WordPress admin -> users -> select a user -> scroll down) to see the new Add button.

1.3.2

  • General fixes and refactors

1.3.1

  • Fix a bug related to updating/setting custom refer codes

1.3.0

  • new feature which allows setting custom refer code for users, See the new filed in edit user page

1.2.1

  • show referral data in users table

1.2.0

  • new feature to remove referral relation in user edit admin page

1.1.1

  • update tested up to version: 5.7
  • fix copy box shortcode not rendering in some page builders.

1.1.0

  • New option to set ref code expiration time
  • New shortcode to show invited users list in frontend. new hooks to customize list’s look.
  • New important filter to modify ref code on registration (‘wp_referral_code_new_user_ref_code’) which makes it possible to capture possible refer code value from registration form or other sources.
  • minor bug fixes and performance improvements
  • -Many thanks to Stefano (@sdotb) for testing and reviewing plugin

1.0.2

  • this update ensures values in the invited users list are unique.

1.0.1

  • This minor update includes code improvements and some new hooks to make the plugin easier to extend by developers. no breaking changes.
  • add new filter ‘wp_referral_code_validate_submission’ to control wheter refer data should be submited to database.
  • new helper function ‘wp_referral_code_add_user_to_referrer_invite_list($user_id, $referrer_id)’

1.0.0

  • First version
Back to top