id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 6681,Delete all of a user's notifications after they're deleted,henry.wright,boonebgorges,"Some notifications seem to remain in the database after a user is deleted. I don't see a reason to keep them? Even custom notifications added by plugins could get the chop: {{{ function example_func( $user_id ) { $where = array( 'user_id' => $user_id, 'item_id' => false, 'secondary_item_id' => false, 'component_action' => false, 'component_name' => false ); BP_Notifications_Notification::delete( $where ); } add_action( 'delete_user', 'example_func' ); // More hooks needed here to cover the various ways users can be deleted. }}}",enhancement,closed,normal,2.5,Toolbar & Notifications,2.3.3,normal,fixed,has-patch has-unit-tests,