[wp-hackers] Possible to remove elements of 2.5 admin?

Ryan Boren ryan at boren.nu
Wed May 14 08:34:27 GMT 2008

On Sat, May 10, 2008 at 9:55 AM, Jeremy Clarke
<jer-wphackers at simianuprising.com> wrote:
> I'm trying to fix a bug in this plugin http://beyn.org/sidecat/ (moves
>  category selector into sidebar, necessary for people like me with
>  hundreds of categories) that is caused by the fact that the original
>  category selector is still there in the html but just hidden with CSS
>  (you can't remove categories because the hidden original one keeps
>  them silently checked, also causes bigger page size and slower load
>  for unnecessarily because of duplicate lists).
>  At first I thought it would be easy, I could just remove the category
>  meta box with something like remove_meta_box(), as it is just another
>  meta box. Of course I realized there's no remove_meta_box() function,
>  so I loaded the $wp_meta_boxes array to try and remove it manually,
>  only to find it's not even in there, but instead hardcoded into the
>  editor template.
>  So, is there some other way to remove the categories box (and the
>  other default boxes)?

Removing and replacing the default boxes will be supported in 2.6.


More information about the wp-hackers mailing list