bp_activity_at_mention_delete_notification( array $activity_ids_deleted = array() )

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

Parameters Parameters


(array) (Optional) IDs of deleted activity items.

Default value: array()

Source 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 );

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.