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?
Answer
Well, I couldn’t find how to unset it, so I’m using my old method:
|
1 2 3 4 5 6 |
function auto_media() {
echo '<style type="text/css">
#media-items .savesend input.button, #gallery-settings * {display:none;}
</style>';
}
add_action('admin_head', 'auto_media'); |


