WP Referral Code


WP Referral code helps you generate a refer code for each of your users and start your version of referral marketing.on user registeration plugin will capture the refer code. WP Referral Code provides a user-friendly “copy refer link box” so that users can easily copy and share their link.

this plugin\’s only dependency is wordpress core you can use it with all plugins out there. the logic after successful referred registeration is up to you though. 2 important hooks will help you with that. check documentation on plugin website for more information.Documentation

several shortcodes are provided to help you get the things where they should be. you can see a list of them on plugin options

All information about referral status of user is on user edit page(Dashboard->Users->selec a user). there you can see how many users he has invited and referred by who.


  • Options page of plugin
  • Copy link shortcode example


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


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.
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
Read all 4 reviews

Contributors & Developers

“WP Referral Code” is open source software. The following people have contributed to this plugin.


Translate “WP Referral Code” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



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


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


  • 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


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


  • 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)’


  • First version