POM Theme for developers
This chapter documents the supported contracts available to a plugin or child theme integrating with POM Theme. It covers public helpers, template syntax, programmatic forms, conditional assets, CSS utilities, and the supported WP-CLI audit command.
Check helper availability when POM Theme is optional. Do not include theme files directly or depend on generated files, private classes, settings storage, or builder serialization.
Start here
- Supported extension points and compatibility rules
- Sanitization, escaping, and capability requirements
- Performance requirements for POM extensions
- Read POM theme settings safely
- Work with builder data safely
Public helper references
- Use color and icon helpers
- Use image and lazy-loading helpers
- Use button and pagination helpers
- Use term and content helpers
- Evaluate POM permission rules
- Check compatible integrations
- Use sidebar and social helpers
- Load assets only where they are needed
Focused developer topics
- Create forms programmatically
- Use POM CSS helpers
- Use template merge tags
- Choose a template integration
- Register plugin-owned content models
- Regenerate theme assets
- Understand progressive archives
- Use supported WP-CLI commands
Compatibility baseline
- Use WordPress hooks and documented POM functions.
- Treat slugs, field names, template identifiers, and setting keys as durable contracts.
- Sanitize incoming data, authorize writes, verify nonces, and escape at output.
- Execute multisite work in the intended blog context.
- Load assets only when the integration renders.
- Provide an explicit fallback when a POM subsystem or third-party integration is unavailable.