Thursday, September 24, 2015

WC Vendor Allow vendors to view all media

Hi friends
If you are using Wc Vendor plugin and
If you want Allow vendors to view all media library
Step 1 
Please open file in editor
wp-content > plugins > wc-vendors > classes > admin > class-admin-users.php

And find filter 
Filter user attachments so they only see their own attachments 

And remove 
Filter Code under this filter  

3 comments:

  1. It worked.
    We want vendor not to "add media".

    ReplyDelete
    Replies
    1. Hi rohit please check this page (class-admin-users.php) have all permission. you can set as per your requirements

      Delete
  2. how i could disable the upload file tab from media option

    ReplyDelete