“Registration form” shortcode

The yith_wcaf_registration_form shortcode inserts the registration form on the page, that the user can use to register as a 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 affiliate ones thanks to this button.
On the contrary, for unregistered 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