add_meta_box() to Category Edit Screen?

I’ve got a plugin that attaches itself to both the post and page editors to read and write to the post_content object. I’d like to also attach my plugin to the category manager edit screen.

In the code below, lines 1 and 2 attach it to the post and page editor, but line 3, a shot in the dark, is not yet doing the trick. Any ideas on the proper way to do it?

if ( function_exists('add_meta_box') ) { 
    add_meta_box('My-plugin', __('My plugin'), 'My_plugin_callback', 'post', 'side', 'high');
    add_meta_box('My-plugin', __('My plugin'), 'My_plugin_callback', 'page', 'side', 'high'); 
//???   add_meta_box('My-plugin', __('My plugin'), 'My_plugin_callback', 'category', 'side', 'high');
}

Related posts

Leave a Reply

1 comment

  1. I’m pretty sure that even if you add that meta box at the bottom of the category edit you will still have the problem of meta table for categories, and i bet that your meta_box ‘save’ function saves as postmeta data table.

    However this can be done using the options table here is an how to add extra fields to categories

    Hope this helps