bp_members_mark_read_accepted_invitation_notification()
Mark accepted invitation notifications as read when user visits new user profile.
Source Source
File: bp-members/bp-members-notifications.php
function bp_members_mark_read_accepted_invitation_notification() { if ( false === is_singular() || false === is_user_logged_in() || ! bp_is_user() || empty( $_GET['welcome'] ) ) { return; } // Mark notification as read. BP_Notifications_Notification::update( array( 'is_new' => false ), array( 'user_id' => bp_loggedin_user_id(), 'item_id' => bp_displayed_user_id(), ) ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
8.0.0 | Introduced. |