Quick Reference
WordPress-to-Siren pattern mapping table with links to detailed guides.
Last updated: April 9, 2026
WordPress Developer Quick Reference
Siren is built on PHPNomad, a platform-agnostic PHP framework. None of Siren’s core logic depends on WordPress. It uses WordPress as a host platform through a thin integration layer. This means the patterns you use daily in WordPress plugin development have direct equivalents in Siren, but they are expressed through typed PHP interfaces rather than global functions and string-named hooks.
This guide maps WordPress patterns you already know to their Siren equivalents. Each row links to a dedicated page with side-by-side code examples. The rest of Siren’s documentation is platform-agnostic by design. It describes PHPNomad interfaces, domain events, and datastores without reference to WordPress. These WordPress Developer Guide pages are the bridge: they start from the WordPress concept and show you where to land.
If you are building a Siren extension for a WordPress plugin, start here and follow the links into the detailed guides. If you have already read through the Getting Started section, use this table as a quick-lookup cheat sheet.
Pattern Mapping
| WordPress Pattern | Siren Equivalent | Details |
|---|---|---|
add_action / add_filter | Event::attach() or CanHandle + HasListeners | Hooks, Actions & Events |
do_action / apply_filters | Event::broadcast() or EventStrategy::broadcast() | Hooks, Actions & Events |
| WordPress hook to domain event | Event bindings + transformer callables | Bridging Platform Hooks |
get_post / WP_Query | Facade::getById() / andWhere() or datastore DI | Querying Data |
$wpdb direct queries | Datastore andWhere() / where() | Querying Data |
| Global functions | Facades (static wrappers) | Dependency Injection |
get_option / update_option | Configs::getConfigValue() or ConfigDatastore DI | Configuration |
get_post_meta / update_post_meta | Configs::setConfig() (scoped by type/subtype) | Configuration |
| Custom post types | Model classes + datastores | Architecture Overview |
register_rest_route | Controller + HasMiddleware + HasControllers | REST API Patterns |
current_user_can | User::canDoAction() or auth middleware | Roles & Permissions |
WP-Cron / wp_schedule_event | Domain event listeners or TaskStrategy::dispatch() | PHPNomad Tasks |
WP_Error / is_wp_error() | Typed exceptions (RecordNotFoundException, etc.) | Error Handling |
| Plugin activation hooks | Initializers + shouldLoad() | The Integration Class |