[wp-hackers] Disabling media buttons

Per Søderlind per at soderlind.no
Wed Apr 16 17:21:48 GMT 2008


> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
> bounces at lists.automattic.com] On Behalf Of Otto
>
> Have you tried this in a plugin or in the theme's functions.php file?
> 
> remove_action( 'media_buttons', 'media_buttons' );
> 
> That should eliminate the buttons from showing at all.
> 
> On Wed, Apr 16, 2008 at 9:29 AM, Per Søderlind <per at soderlind.no>
> wrote:
> >  I'm trying to disable the media buttons tab (actually trying to
> disable
> >  upload), but I can't find a filter for 'em.
> >
> >  Any idea (I've looked at the media_buttons action, but ...)?

It's for a plugin (ImageManager). When/where should I call it. I tried doing
it in a method called by init, but it didn't work.

Regards,
PerS



More information about the wp-hackers mailing list