0

I use the buddypress + rtmedia plugins to create website.

And I met a problem that how can I limit the total space in every user ?

for example

every user has 10MB to upload the video,photo,music in their profile.

or

every user can upload 10 photos in their profile.

can that do it via theme`s functions.php ?

0

It's a task that can be easily tackled using wp_handle_upload and wp_handle_upload_prefilter (e.g.: Give users a maximum upload capacity; limit the number of files a user can upload OR limit the number of files per upload).

Luckily someone already did this, as a plugin: Upload Quota per User. It's pretty old and seems unmaintained but tested on WP 4.9.9 it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.