function bp_core_delete_notification($id) { if (!bp_core_check_notification_access($bp->loggedin_user->id, $id)) { return false; } return BP_Core_Notification::delete($id); }