WordPress.org

Ready to get started?Download WordPress

Forums

Adminimize
[resolved] Hide Media Library (5 posts)

  1. Gtantra
    Member
    Posted 2 years ago #

    Hi,
    Im trying to Hide the Media Library Button in "Add Media". I've used firebug and found the code is li id="tab-library" .

    But it does'nt work when I add #tab-library

    There must be some thing Im missing out .
    Kindly advice whats the code I need to insert to hide Media Library in Add Media.
    Thank You

    http://wordpress.org/extend/plugins/adminimize/

  2. Gtantra
    Member
    Posted 2 years ago #

    BTW i've checked (ticked) "Deactivate for Author" and "Deactivate for
    Contributor" as I want it hidden for those. I've actually used the plugin to hide other fields . But im not able to get the right code to hide Media Library (Add Media)in New Post

  3. Gtantra
    Member
    Posted 2 years ago #

    Hi This is the line that I need hidden . Can anyone help pls ?

    <a href="/wp-admin/media-upload.php?post_id=1776&tab=library">Media Library</a>

  4. Frank
    Member
    Plugin Author

    Posted 1 year ago #

    add a custom option to the "Global Options". Only this was load on all pages in backend.
    Use the ID #tab-library as Id and give a name, like Tab MediaLibrary.
    After save this option you can hide this for different roles.

  5. Gtantra
    Member
    Posted 1 year ago #

    Yes, It works . Thanks a lot for your help Frank . Much appreciated.
    Love the plugin !!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.