Перейти к содержимому

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.

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');
}
FunctionPurposeSource
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