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

scribu scribu at gmail.com
Sun Jun 27 18:07:03 UTC 2010


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


More information about the wp-hackers mailing list