0

Hello guys I was following this article but the code doesn't seem to do anything. The last one by Maruti Mohanty is doing something , it doesn't allow any files to upload with an error. Set a maximum upload count for users on a specific user role

As the title says, I would like to allow a specific user role I have created to only upload one image to his media library.

Any ideas how to do that?

Thanks

John

3
  • Does this answer your question? Set a maximum upload count for users on a specific user role
    – vancoder
    Commented Jun 28, 2021 at 20:46
  • I tried to paste all the codes but It doesn't do anything... I mean I can still upload more than 10 images [for the example] , the last code actual did something but only to restrict all uploading so I couldn't upload any image.
    – Johnda
    Commented Jun 28, 2021 at 21:03
  • each code by its own of course modified it to my user role name in this case its ''Artist'' role with subscribers capabilities plus upload_file and delete_post .
    – Johnda
    Commented Jun 28, 2021 at 21:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.