WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I think this could be a simple answer but I can't really find.

except administrator, users are not able to see "media library".

Is there anyway to setup to show (display on dashboard) media library for non-admin users? I may need give access by user-type or something else.

then they see what they uploaded.

 function my_files_only( $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', 'my_files_only' );
share|improve this question
I switch to author user and see Media Library just fine?.. – Rarst Nov 27 '13 at 14:34
no my user can not see the menu. do i need to set it up something? – pulla Nov 27 '13 at 15:35
What you describe is non-standard. (I think that is the point that @Rarst was making.) You don't need to set up anything but something has already altered default behavior-- a plugin or a theme, probably. You need to find out what. – s_ha_dum Nov 27 '13 at 16:02
thanks now I understand, what I need to set it up. I modified roles and capability and works great. – pulla Nov 28 '13 at 5:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.