1. Frontend Awards
  2. [gamipress_achievement_frontend_award]

[gamipress_achievement_frontend_award]

Render an achievement award form.

Attributes:

  • id – The achievement ID to award.
  • select_achievement – Allow user to select a specific achievement to award. If achievement ID is set it will be used as initial achievement selected. Default: yes
  • button_text – Award button text. Default: Award
  • recipient_id – User that will receive the award.
  • select_recipient – Allow user to select a specific award recipient. If recipient is set it will be used as initial recipient selected. Default: no
  • recipient_placeholder – Recipient input placeholder text. Default: Enter username or email
  • recipient_autocomplete – Enabling this functionality will add user suggestions to the recipient field.If this option is not enabled, user will be required to provide exactly the recipient user name or email. Default: no
  • This shortcode accepts all attributes of [gamipress_achievement] to setup the achievement display.

Example:
[gamipress_achievement_frontend_award id="123" select_achievement="yes" button_text="Award" recipient_id="1" select_recipient="yes" thumbnail="yes" excerpt="yes" steps="yes" toggle="yes" earners="no"]

Was this article helpful to you? No Yes

How can we help?