Skip to content

Shortcodes

The plugin ships two shortcodes: one renders the signup form, the other renders the affiliate dashboard. This tab is where you rename them and set what the signup page shows.

Go to DevDiggers Plugins → Affiliates → Configuration → Shortcodes.

The Affiliates Shortcodes settings tab with both shortcode fields and the registration content option

Affiliate Registration Form Shortcode defaults to [ddwcaf_affiliate_registration_form_shortcode]. Put it on any page to render the signup form.

The Affiliate Registration Form Shortcode field on the Shortcodes settings tab

Affiliate Dashboard Shortcode defaults to [ddwcaf_affiliate_dashboard_shortcode]. Activation already put this one on the Affiliate Dashboard page it created.

The Affiliate Dashboard Shortcode field on the Shortcodes settings tab

Both fields let you rename the shortcode. Only do that if the default name clashes with another plugin. Renaming a shortcode does not update pages already using the old one, so you have to edit every page that uses it.

Registration Page Content decides what the registration shortcode renders for a logged-out visitor.

The Registration Page Content dropdown on the Shortcodes settings tab

  • Display Login + Registration Form shows both side by side. This is the default and the right choice for a dedicated affiliate landing page, since returning affiliates need somewhere to log in.
  • Display Registration Form Only shows the signup form alone. Use it when you already have a login link elsewhere on the page.

The setting only affects logged-out visitors. A logged-in customer who is not yet an affiliate always sees the short join form asking for the extra affiliate fields, whichever option is set.

The Become an Affiliate form shown to a logged-in customer who is not yet an affiliate

The registration shortcode renders one of three things, depending on who is looking.

Visitor What they see
Logged out Login form, signup form, or both
Logged in, not an affiliate The join form with the affiliate fields only
Logged in, already an affiliate Nothing to sign up for

The dashboard shortcode renders the full affiliate dashboard for an approved affiliate, and the signup form for anyone who is not one yet. That is why one page can serve as both the signup page and the dashboard.