1. Documentation
  2. Shortcodes
  3. [gamipress_email_settings]

[gamipress_email_settings]

Display the user email notifications preferences for the GamiPress emails.

Preview:

Attributes:

  • groups – Show email settings divided per groups. Accepts: yes or no Default: yes
  • types – Show email settings divided per type. Accepts: yes or no Default: yes
  • current_user – Show last achievement earned of current logged in user. Accepts: yes or no Default: yes
  • user_id – Show last achievement earned earned by a specific user.
  • This shortcode accepts all attributes of [gamipress_achievement] to setup the achievement display.

Example:
[gamipress_email_settings groups="yes" types="yes" current_user="yes"].

Important: This shortcode has the ability to automatically hide the groups of settings that are not in use, for example if from the GamiPress Email Settings you have disable the notifications for achievements, the [gamipress_email_settings] shortcode will not display any settings related to achievements since they have been disabled.

Working with the email settings groups

[gamipress_email_settings] includes the attributes groups and types that lets you control the groups of settings to display.

Setting the attributes groups and types to no will display a unique setting to activate/deactivate all emails that GamiPress sends:

Preview:

Shorcode:
[gamipress_email_settings groups="no" types="no"].

Setting the attribute groups to yes and types to no will display 4 settings to activate/deactivate all, points, achievements or ranks emails:

Preview:

Shorcode:
[gamipress_email_settings groups="yes" types="no"].

Finally, setting the attributes groups and types to yes will display the full list of settings to let the user activate/deactivate all emails, emails per groups (points, achievements and ranks) or emails per type:

Preview:

Shorcode:
[gamipress_email_settings groups="yes" types="yes"].

How can we help?