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

Thomas Belknap dragonfly at dragonflyeye.net
Sun Jun 27 22:51:08 UTC 2010


Thanks scribu, I'll have to play around with that.

On Sun, Jun 27, 2010 at 2:07 PM, scribu <scribu at gmail.com> wrote:

> I found out that you can attach arbitrary info directly to the post type
> object:
>
> register_post_type('example', array(
>  'foo' => array('bar')
> ));
>
>
> ... later ...
>
>
> $foo = get_post_type_object('example')->foo;
>
>
> --
> 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