Skip to main content

PostTypes

1 min read

PostTypes

Shared across every PremiumPress product. 1 classes in inc/PostTypes.

Listings Listings.php​

Registers the core listing_type post type and its taxonomies — the heart of the directory. The post-type KEY is listing_type to match the existing PremiumPress/DT10 data (all listings in the DB are post_type = 'listing_type'), while the public URL slug stays the clean listing (/listing/…). Standard WordPress registration; no legacy engine.

API
register()hideCommentsFeedLink()maybeFlush()postType()taxonomies()reusableBlankDraft()isBlankDraft()acceptsComments()customTaxonomies()taxInputStyle()taxSinglePick()taxSingleForced()filterSinglePick()hiddenTaxonomies()isTaxonomyHidden()registerCustom()
inc/PostTypes/Listings.php