[wp-hackers] Adding parameters to add_meta_boxes_ . $post_type?

scribu scribu at gmail.com
Sun Jun 27 17:39:47 UTC 2010

For reference, this is the code in question:

    if ( $args->register_meta_box_cb )
        add_action('add_meta_boxes_' . $post_type,
$args->register_meta_box_cb, 10, 1);

Are you sure you need absolutely need to pass arguments for that callback?

I mean, you already know the post type.


More information about the wp-hackers mailing list