Simply put – how might I completely hide media files uploaded by any other users other then themselves? Id like to disable access to these links & files since they are a way for non-admin users to be able to access and edit a custom post type that is normally not visible to them otherwise in the backend of wordpress.
Note: Id still like for them to be able to upload and edit their “own” media files just to be clear.
Actually you can, and here’s how to do it:
This code hides all posts and media that do not belong to the currently logged in author (you can change it to apply to other user roles). It also fixes the post and media count on the filter bars (e.g. All | Images | Videos | Unattached).
To make Paul’s solution work with ACF, simply change the first function to:
For reference, see ACF Support forum and the latest post there
This one is much easier to add on the functions.php and works like charm :
To view the full tutorial including hiding the images on the media iframe by clicking the ‘Add Media’ button please follow the steps here : http://jeffreycarandang.com/tutorials/hide-wordpress-posts-media-uploaded-users/
Cheers,
phpbits
In all honestly with how WordPress works right now, you can’t. You would have to write your own PHP to enable this.
It really needs major work with regards to how it handles both users and media.