WP 3.5 and Hiding Media Tabs
-
I just upgraded a client to 3.5 and now they are doing the tabs differently… I used to hide the Insert from URL and Media Library using:
function remove_media_tab($tabs) { unset($tabs["type_url"]); unset($tabs['library']); return $tabs; } add_filter('media_upload_tabs','remove_media_tab');
But it no longer works in 3.5. Anyone know the new way to hide those? I tried to do a jquery remove() but it also no longer loads the js file on that as well, only when the page is entered. I wish they would have at least added an ID or something to the tabs so I can hide them using CSS.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘WP 3.5 and Hiding Media Tabs’ is closed to new replies.