Listdom Developers Documentation
This section is the practical developer reference for Listdom integrations, with each page focused on real extension points you can rely on in production.
Use these pages to understand load order, hook into lifecycle events, override templates safely, integrate with REST endpoints, and map your data model correctly.
Native WordPress integration
Section titled “Native WordPress integration”See Native WordPress Abilities for listing discovery and management, scoped settings, read-only administrator diagnostics, and explicitly approved repairs. Discover the live schemas and permissions; registration requires WordPress 6.9+ and is separate from Listdom REST routes.
Getting started
Section titled “Getting started”Before adding hooks, routes, or UI integration code, initialize only after Listdom core is ready. This avoids race conditions and undefined class/function errors.
Listdom boots from plugins/listdom/listdom.php, instantiates its singleton in plugins/listdom/LSD.php, and fires listdom_loaded after core initialization.
Use this as your integration milestone:
function myplugin_init_listdom_integration() { // Register hooks, filters, or integration services here.}
if (did_action('listdom_loaded')) { myplugin_init_listdom_integration();} else { add_action('listdom_loaded', 'myplugin_init_listdom_integration');}Core helper entry points
Section titled “Core helper entry points”| Function | Purpose | Source |
|---|---|---|
listdom() | Returns the Listdom singleton instance. | plugins/listdom/LSD.php |
lsd_template($tpl, $override = true) | Resolves template paths with override support. | plugins/listdom/app/includes/helpers/templates.php |
lsd_map(), lsd_googlemap(), lsd_leaflet() | Map/provider helper accessors. | plugins/listdom/app/includes/helpers/util.php |
lsd_schema(), lsd_date(), lsd_t_label(), lsd_t_label_lc() | Schema/date/tax-label helpers. | plugins/listdom/app/includes/helpers/util.php |