List of post_types, post_meta, taxonomies and term_meta
Opened this issue · 4 comments
carstingaxion commented
To better understand the inner workings of the plugin (and its extensions) I'd like to have an overview about registered data AND their relations altogether, in particular:
slimndap commented
Post types
- Productions: wp_theatre_prod
- Events: wp_theatre_event
- Season: wp_theatre_season
Registered here.
Taxonomies
No taxonomies are registered. Productions us the existing 'category' and 'post_tag' taxonomies.
Defined here.
Post meta
- Most meta fields for events are defined here.
- All other meta fields are just being used whenever thet are needed and are scattered all over the code.
- Events are linked to a production through a
wp_theatre_prod
meta field, that contains the ID of the production. - Productions are, optionally, linked to a season through a
wp_theatre_season
meta field. - Productions and events have a
_wpt_order
meta field that is used to display them in the corrected order or to select them by a date range.
carstingaxion commented
What is the reason for assigning the identical ˋlabelˋ arguments for the event and production post_types?
wp-theatre/functions/wpt_setup.php
Lines 195 to 253 in 70bfc1e
slimndap commented
Because the word ‘production’ turned out to be problematic for a lot of
users. Also most other event plugins use the word ‘event’.
slimndap commented
Additionally, the label for the wp_theatre_event
post type is not being used in the user interface.