[wp-hackers] Disabling media buttons

Otto otto at ottodestruct.com
Wed Apr 16 18:04:15 GMT 2008

On Wed, Apr 16, 2008 at 12:21 PM, Per Søderlind <per at soderlind.no> wrote:
>  > 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.
>  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.

Try hooking it onto admin_head. That should be early enough and yet late enough.

More information about the wp-hackers mailing list