Allow a specific user role I have created to only upload one image to his media library

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

Topic limit count library media images Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.