“Registration form” shortcode

The yith_wcaf_registration_form shortcode inserts the registration form in the page, that the user can use to register as new affiliate to the shop.
If a registered user views the page, only the “Become an affiliate” button will be shown, the user’s profile will be added to the affilate ones thanks to this button.
On the contrary, for non registered users the whole registration form will be shown.

Shortcode - Registration form

The shortcode parameters are:

  • show_name_field: (yes/no) show or hide the “name” field of the form
  • show_surname_field: (yes/no) show or hide the “surname” field of the form