I use BuddyPress Activity Plus for uploading images in Buddypress groups. This works well. I found the function to delete an image when an activity is deleted. Works well too.
But I had to delete the entire group and then the images are not deleted. I need one of this two possible solutions:
- a function and/or hook to delete the images in activities, when the group is deleted
- or the other solution, upload the images to a unique directory for each group (where is the function which creates the path name?) Maybe this is more easy and I can delete the directory wiht the images after deleting the group.