bp_activity_at_mention_delete_notification( array $activity_ids_deleted = array() )

Delete at-mention notifications when the corresponding activity item is deleted.

Description

Parameters

$activity_ids_deleted

(Optional) IDs of deleted activity items.

Default value: array()

Source

File: bp-activity/bp-activity-notifications.php

function bp_activity_at_mention_delete_notification( $activity_ids_deleted = array() ) {
	// Let's delete all without checking if content contains any mentions
	// to avoid a query to get the activity.
	if ( ! empty( $activity_ids_deleted ) ) {
		foreach ( $activity_ids_deleted as $activity_id ) {
			bp_notifications_delete_all_notifications_by_type( $activity_id, buddypress()->activity->id );
		}
	}
}

Changelog

Changelog
Version Description
BuddyPress 2.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.