This great snippet by Philip Borisov make visible (in the backend) images only for own uploader.
This is a great snippet for multi authors website.
You just need to add this snippet in function.php file Continue reading
function show_image( $wp_query ) {
if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/upload.php' ) !== false ) {
if ( !current_user_can( 'level_5' ) ) {
global $current_user;
$wp_query->set( 'author', $current_user->id );
}
}
}
add_filter('parse_query', 'show_image' );
Thanks to Philip Borisov