I'm using different method to form a gallery in Wordpress, so I would like to hide an option to insert images and galleries into post for anyone but Administrator.
Can someone show me an example how it's done?
|
I'm using different method to form a gallery in Wordpress, so I would like to hide an option to insert images and galleries into post for anyone but Administrator. Can someone show me an example how it's done? |
|||
|
|
|
If you actually wanted to remove it instead of just hiding it you could remove the 'admin-gallery' script that is used to insert the gallery settings form. And if you wanted it to be remove only for non-admins then something like this should work:
|
|||
|
|
|
To remove elements in the media editor, you can unset them. I haven't tested it for the insert button, but you can try this. Put this function in the
Or with CSS, for both elements you cite :
|
|||||
|
|
Well, I couldn't find how to
|
|||
|
|