Skip to main content

benecaster_get_referral_code()

Returns the customer’s referral code from the locally cached benecaster_license_referral_code option. No HTTP call is made — the value is populated during license activation and refreshed on each license check.

Pair with benecaster_get_referral_link() to display a ready-to-share URL instead of the raw code.