This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a group is created.
function wixSocialGroupsV2_onGroupCreated(event: GroupCreated): void;
export function wixSocialGroupsV2_onGroupCreated(event) {
const eventId = event.metadata.id;
const entityId = event.entity._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a group is deleted.
function wixSocialGroupsV2_onGroupDeleted(event: GroupDeleted): void;
export function wixSocialGroupsV2_onGroupDeleted(event) {
const eventId = event.metadata.id;
const entityId = event.entity._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a group's logo is changed.
function wixSocialGroups_onGroupCoverChanged(
event: GroupCoverChangedEvent,
): void;
Group cover data.
export function wixSocialGroups_onGroupCoverChanged(event) {
const eventId = event.metadata.id;
const entityId = event.data.group._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a group's description is changed.
function wixSocialGroups_onGroupDescriptionChanged(
event: GroupDescriptionChangedEvent,
): void;
Group description data.
export function wixSocialGroups_onGroupDescriptionChanged(event) {
const eventId = event.metadata.id;
const entityId = event.data.group._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a new member is added to a group, either directly by an admin or when a Join Request is approved.
function wixSocialGroupsV2_onGroupMemberAdded(event: GroupMemberAdded): void;
export function wixSocialGroupsV2_onGroupMemberAdded(event) {
const eventId = event.metadata.id;
const entityId = event.data.groupMember._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
function wixSocialGroupsV2_onGroupMemberRemoved(
event: GroupMemberRemoved,
): void;
export function wixSocialGroupsV2_onGroupMemberRemoved(event) {
const eventId = event.metadata.id;
const entityId = event.data.groupMember._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a Group Request is approved.
function wixSocialGroupsV2_onGroupRequestApproved(
event: GroupRequestApprovedEvent,
): void;
export function wixSocialGroupsV2_onGroupRequestApproved(event) {
const eventId = event.metadata.id;
const entityId = event.data.groupRequest._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a join group request is approved by a group admin or a groups manager.
function wixSocialGroupsV2_onJoinGroupRequestApproved(
event: JoinGroupRequestApprovedEvent,
): void;
export function wixSocialGroupsV2_onJoinGroupRequestApproved(event) {
const eventId = event.metadata.id;
const entityId = event.data.joinGroupRequest._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a join group request is rejected by a group admin or a groups manager.
function wixSocialGroupsV2_onJoinGroupRequestRejected(
event: JoinGroupRequestRejectedEvent,
): void;
export function wixSocialGroupsV2_onJoinGroupRequestRejected(event) {
const eventId = event.metadata.id;
const entityId = event.data.joinGroupRequest._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.