[benecaster_referral_link]
Prints your own Benecaster referral link, for publishing anywhere on your site. A footer credit is the natural home, hence the default text. Anyone who signs up through the link earns you referral credit.
The link comes from the value Benecaster stored at the last daily license check, and it never changes, so rendering the shortcode makes no request to the license server.
It renders nothing, with no placeholder, when there is no link to show: the site has no license, the license server has not supplied a link yet, or the license is no longer Active or Expiring. A lapsed site shows exactly what the free product shows.
It never shows your referral balance, in any style or with any attribute. A cached balance can be out of date, so the balance is not something to print on a public page. It lives on the Refer a Friend page in wp-admin and on your benecaster.com account page.
The link is marked rel="sponsored", as search engines ask for referral links. Use the benecaster_referral_link_output filter to wrap or restyle it, and see Put a “Powered by Benecaster” referral link in your theme’s footer for a footer example.
Parameters
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
style |
string |
link
|
No | Output form. link — an anchor tag whose text is the label. url — the bare referral URL with no anchor, for use inside your own markup. Any other value falls back to link. |
label |
string |
Powered by Benecaster
|
No | Link text. Ignored when style is url. The default is translatable. |
Example
<!-- Default: a "Powered by Benecaster" link -->
[benecaster_referral_link]
<!-- Your own wording -->
[benecaster_referral_link label="Podcast memberships powered by Benecaster"]
<!-- Just the address, on its own line -->
[benecaster_referral_link style="url"]