📢 This article was translated by gemini-3-flash-preview
By default, WordPress allows authors to see all images in your site’s media library. They can view files uploaded by administrators, editors, or other authors.
For many sites, this might not be an issue. However, if you are running a multi-author site, you might want to change this behavior.
First, navigate to site-root/wp-content/themes/your-active-theme/.
Find the functions.php file and edit it. Insert the following code at the end:
| |
References
How to restrict media library access to user-uploaded content in WordPress