Use in theme functions
Could a theme version of this be created so it can be programmatcally included rather than using the admin?
I''m curious, how do you see this? I'm not sure if I get it what you want to achieve
Ok - lets say we have an event that has three meta boxes. One for the content which would be description, one for details which would be start time/end time and one for the location (with a map). We create the meta boxes (I've filled in some of the info to give you a jist of what I mean)
add_meta_box( 'content', 'Content', $callback, 'event, $context, $priority, $callback_args ); add_meta_box( 'details', 'Details', $callback, 'event', $context, $priority, $callback_args ); add_meta_box( 'map', 'Map', $callback, 'event', $context, $priority, $callback_args );
And then have the ability to add the tabs (sorry my coding skills aren't the best but i envisage something like this)
add_post_tab( main, Main, array('content', 'details') '); add_post_tab( map, Map, array('map') ');
So the content and details are in the first tab that is called main and the map is in it's own. I can't think of any reason why you'd need to specify a post type at that stage either.
Again - just an idea but that would be a very useful asset.
Cheers.
Ah okay. Basically pre defined tabs and the ability to hide the posttype from the admin page. And maybe the ability to ignore user defined structure.
This is something I got in my mind. I'm not sure yet how to implement it. Mainly because what to do with metaboxes that weren't added to a tab. It will get connected to a post type since you want to have full control over what happens.
I probably will not add this in the next version but the version after that.
I think by now there are several filters that can tackle this. Moving this to 0.6 for investigation and maybe I can deal with it with documentation only.