eu perguntei e eu mesmo achei a solução
basta acrescentar esta função em functions.php
add_action(‘pre_get_posts’, ‘restringir_biblioteca’ );
function restringir_biblioteca($wp_query_obj){
global $current_user, $pagenow;
if(!is_a($current_user, ‘WP_User’)){
return;
}
if (‘admin-ajax.php’ != $pagenow or $_REQUEST[‘action’] != ‘query-attachments’){
return;
}
if(!current_user_can(‘manage_media_library’)){
$wp_query_obj->set(‘author’, $current_user->ID);
return;
}
}
Eu coloquei entre a função current_time e um bloco de comentarios. funcionou.