Woo Earn Share

Let your users share their own codes to earn discounts.

Author:Lucio Dev (profile at wordpress.org)
WordPress version required:3.5
WordPress version tested:6.0.2
Plugin version:2.0.0
Added to WordPress repository:12-11-2018
Last updated:03-10-2022
Rating, %:0
Rated by:0
Plugin URI:https://lucio.dev/Woo-Earn-Sharing
Total downloads:693
plugin download
Click to start download

Let your users share their own codes to earn discounts!

When someone uses a referral code when purchasing in your shop and the order is “Completed”, the code owner will receive a percentage (set in the dashboard admin of WordPress), which will be added to their balance. The balance can then be used on the next purchase.

See the FAQ for more details

Feature:
You can enable returning the money to a user who used their balance but had the purchase refunded, canceled, or failed.

Shortcodes!
[wooes_user_balance] – Shows the current user balance
[wooes_user_code] – Shows the current user code

Filters!

wooes_user_balance

Filters the user’s balance

  • $balance float The user’s balance.
  • $user_id integer The user ID.

wooes_get_user_code

Filters the user’s code

  • $code string The code fetched from the user.
  • $user_id integer The user ID.
  • $format boolean Whether or not the code should be formatted.

wooes_get_user_by_code

Filters the user by the code

  • $user \WP_User|false The fetched user of false if none.
  • $code string The code used to search the user.

wooes_new_balance

Filters the new user’s balance

  • $new_balance float The new balance value.
  • $money float The money being added.
  • $old_balance float The previous value.
  • $giving_back boolean Whether it’s giving the money back or not.

wooes_new_balance

Filters the new user’s balance

  • $new_balance float The new balance value.
  • $money float The money being added.
  • $old_balance float The previous value.
  • $giving_back float Whether it’s giving the money back or not.

wooes_generate_new_referral_code

Filters the newly generated code

  • $code string The randomly generated code.
  • $length integer The length of the code, from settings.
  • $alphanumeric boolean Whether it’s an alphanumeric code, from settings.

wooes_format_code

Filters the formatted code

  • $code string The code.

Screenshots
FAQ
ChangeLog