1. Documentation
  2. Points Exchanges
  3. [gamipress_points_exchange]

[gamipress_points_exchange]

Render a points exchange form.

Attributes:

  • allow_input_amount – Allow user input the amount to exchange. Accepts: yes or no Default: yes
  • amount – Amount user will exchange. If user is allowed to input the amount, then this amount will be used as initial amount. Default: 100
  • allow_input_from – Allow user choose the points type to exchange from. Accepts: yes or no Default: yes
  • from – The points type to exchange from. If user is allowed to choose the amount’s points type, then this type will be used as initial selected option. Accepts: any slug of any points type registered.
  • allow_input_to – Allow user choose the points type to exchange to. Accepts: yes or no Default: yes
  • to – The points type to exchange to. If user is allowed to choose the points type to exchange, then this type will be used as initial selected option. Accepts: any slug of any points type registered.
  • button_text – Exchange button text. Default: Exchange

Example:
[gamipress_points_exchange allow_input_amount="yes" amount="100" allow_input_from="yes" from="credits" allow_input_to="yes" to="gems" button_text="Exchange"]

Was this article helpful to you? Yes No

How can we help?