Restrict allowed file types for BuddyPress Avatar and Cover Images
BuddyPress allows your users to use "jpeg", "gif", "png" file types for avatars and cover images. If you need to restrict or change the allowed file types, there exists a filter "bp_attachments_get_allowed_types" that allows us to do it. Let us see some examples on how to restrict the allowed file types for avatars as well as …