Primary

[groups_leave]

Let a user leave a group

[groups_leave group="X"]

This shortcode takes the following attributes to let a user leave a specific group:

  • group : (required) the group ID or name
  • display_message : (optional) whether to show a confirmation after leaving the group; accepted values: true, false; defaults to true
  • submit_text : (optional) specify to change the button text; must contain %s to show the group name