Listdom Developer Best Practices Documentation
Esta página aún no está disponible en tu idioma.
Practical guidance backed by source patterns
Section titled “Practical guidance backed by source patterns”These recommendations are derived from observed core behavior and extension points in extracted data.
-
Initialize on
listdom_loaded- Core emits this action after initialization.
-
Use hooks/filters, not core file patches
- Prefer extension points like
lsd_template,lsd_addons, and API lifecycle hooks.
- Prefer extension points like
-
Follow API auth contract exactly
- Send
lsd-tokenfor API token checks. - Send
lsd-userfor user-protected routes.
- Send
-
Match sanitization/escaping patterns
- Use sanitization before persistence and escaped output in UI contexts.
-
Prefer theme template overrides
- Override in
/wp-content/themes/{theme}/listdom/...rather than editing plugin templates.
- Override in
-
Integrate with existing JS event contracts
listdom:modal:opened,listdom:modal:closed,lsd-autocomplete-select,lsd-mapsearch.