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.
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 |
Developer categories
Section titled “Developer categories” Extensibility Verified hooks/filters and when to use each extension point.
Templates and Builders Template resolution, override strategy, and Elementor integration notes.
API and Frontend Events REST routes, auth model, and frontend JS event contracts.
Data Structure CPTs, taxonomies, meta patterns, and custom tables.
Best Practices Repository-backed patterns for stable and secure integrations.