bp_activity_clear_new_mentions( int $user_id )

Reset a user’s unread mentions list and count.


Parameters Parameters

$user_id

(int) (Required) The id of the user whose unread mentions are being reset.


Source Source

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

function bp_activity_clear_new_mentions( $user_id ) {
	bp_delete_user_meta( $user_id, 'bp_new_mention_count' );
	bp_delete_user_meta( $user_id, 'bp_new_mentions'      );

	/**
	 * Fires once mentions has been reset for a given user.
	 *
	 * @since  2.5.0
	 *
	 * @param  int $user_id The id of the user whose unread mentions are being reset.
	 */
	do_action( 'bp_activity_clear_new_mentions', $user_id );
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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