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

Thomas Belknap dragonfly at dragonflyeye.net
Sun Jun 27 17:53:24 UTC 2010


Well, here is what I am wanting to do: is like to be able to hold all the
info about a post type in an array - actual post type info and then meta box
info. The foreach through them, passing values to the register_meta_box_cb.
This works for everything but the meta boxes.

On Jun 27, 2010 1:40 PM, "scribu" <scribu at gmail.com> wrote:

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.


--
http://scribu.net
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list