removeSubscription

Description

Removes a subscription for a user.

Syntax

void removeSubscription (int $id_subscribe, int $id_member[, bool $delete])



Parameter $id_subscribe

Expected type: Integer
Description: Subscription ID



Parameter $id_member

Expected type: Integer
Description: Member ID



Parameter $delete

Expected type: Boolean
Description: Whether or not to delete this subscription for this member. Defaults to false.


Notes

  • Handles any necessary group membership changes
  • Disables the subscription
  • Deletes the subscription if $delete is true
Advertisement: