Documentation

Application

Table of Contents

Interfaces

JobSchedulerInterface
Contract for enqueuing one-off async jobs on a WordPress host.
DiagnosticCheckInterface
Extension point for package- and host-level checks in the boot report.
HookInterface
RequestAuthenticatorInterface
Resolves the WordPress user behind an inbound REST request.
ResponseEmitterInterface
Injectable sink for the HTTP response side-effects the WordPress adapter performs outside the PSR-15 kernel — the status code, headers, redirects, the response body, and terminating the request.
RestControllerInterface
RestRouteMiddlewareInterface
Per-route middleware that wraps a single WordPress REST controller action.
RouterInterface
Adapter-local routing contract, the WordPress counterpart of the Moodle adapter's `RouterInterface`.
PersonalDataProviderInterface
Contract a host/product package implements to plug domain data into the WordPress personal-data export and erasure flows.
CapabilityInterface
Marker for a typed WordPress capability.

Classes

AdminRouteRegistrar
Admin routing surface: registers a wp-admin menu tree whose pages all render through one dispatch pipeline — the current page/route resolves against the adapter {@see RouterInterface} route collection (controller-declared `#[Route]` attributes or imperative registrations) and executes through the framework HTTP kernel, inheriting its middleware pipeline and the `#[Auth]`/`#[Middleware]`/`#[Nonce]` attributes.
MenuPage
Immutable description of the top-level wp-admin menu entry an {@see AdminRouteRegistrar} registers.
SubMenuPage
Immutable description of one wp-admin submenu entry.
WpHostEventBridge
WordPress host event bridge.
WpUserContext
WordPress user context resolver.
WpConfigResolver
WordPress adapter for config resolution.
ActionSchedulerDriver
Action Scheduler job driver — the preferred backend when present.
CronHandler
CronRegistrar
Per-component WP-Cron registrar.
JobScheduler
Runtime-detecting factory for the async job port.
WpCronDriver
Pure WP-Cron job driver — the zero-dependency fallback.
WpdbConnectionAdapter
WordPress database adapter — wraps the global `$wpdb` behind the framework {@see ConnectionAdapterInterface} seam.
WpdbSqlDialect
SQL dialect for WordPress' `$wpdb` (MySQL / MariaDB).
CronScheduleDefinition
Declarative custom cron interval, surfaced through the `cron_schedules` filter so {@see CronRegistrar} handlers can schedule against it.
DefinitionRegistrar
Registers declarative host definitions (post types, taxonomies, cron intervals) with WordPress. The WP counterpart of the moodle adapter's `Definition/` concern: describe the plugin's registrations as data, wire them in one call from the `init` hook.
PostTypeDefinition
Declarative custom post type: name it once, get sensible labels and args; `args` overrides anything the convention derives.
ShortcodeDefinition
Declarative shortcode: tag + render callback, registered by {@see DefinitionRegistrar}. The callback receives the standard WP shortcode signature `(array|string $atts, ?string $content, string $tag)` and returns the markup (shortcodes must return, never echo).
TaxonomyDefinition
Declarative taxonomy bound to one or more post types.
BootReport
Self-check of the packages registered in this WordPress request.
CallbackCheck
A diagnostic check written as a closure.
CheckResult
Immutable outcome of one diagnostic check.
DiagnosticsRegistry
Registration surface where packages declare themselves to the boot report.
DoctorCommand
WP-CLI `doctor` command: prints the boot report and exits non-zero when something is broken, so health checks and pipelines can gate on it.
DoctorCommandRegistrar
Registers the {@see DoctorCommand} with WP-CLI under a consumer-chosen root.
PackageProbe
A package's declaration to the boot report.
PackageReport
Collected check results of one registered package.
CommentDto
Host-neutral shape for a WordPress comment.
MediaAttachmentDto
Host-neutral shape for a WordPress media attachment.
PostMetaRepository
CRUD operations for wp_postmeta.
PostRepository
Repository for wp_posts queries using the WP_Query-based QueryBuilder.
TaxonomyDto
Host-neutral shape for a WordPress taxonomy.
TermDto
Host-neutral shape for a WordPress term.
UserMeta
UserRepository
OrderReference
Lightweight reference to a WooCommerce order without requiring WooCommerce.
ProductReference
Lightweight reference to a WooCommerce product without requiring WooCommerce.
WooCommerceAvailability
Runtime feature probe for optional WooCommerce integrations.
HookRegistrationException
Raised when WordPress hook discovery cannot be configured.
SettingsRenderException
Raised when a declarative settings field cannot be rendered safely.
WordPressAdapterException
Base exception for WordPress adapter-specific failures.
WordPressDatabaseException
Raised when the $wpdb-backed connection adapter reports a database failure.
WpUploadsFilesystem
WordPress implementation of the framework filesystem port, rooted at the site's uploads directory (`wp_upload_dir()['basedir']`) — the one location a plugin may write to on every WP host. Delegates to the framework's {@see LocalFilesystem} for the actual path-jailed IO.
HookRegistrar
Discovers every {@see HookInterface} implementation under the configured roots and registers it (container-resolved when the consumer provides one).
WpSessionAuthenticator
The batteries-included {@see RequestAuthenticatorInterface}: resolves the user from the established WordPress session (cookie auth) only.
HttpClient
Outbound HTTP client over the WordPress HTTP API (`wp_remote_request()`), with first-class client-certificate (mTLS) support — WP_Http exposes no certificate arguments, so `certPath`/`certPassword`/`keyPath` are applied through an `http_api_curl` action registered before and detached right after the single request. When the active transport never hands the action a cURL handle (non-cURL transport), the request fails loudly instead of silently going out without the client certificate.
HttpResponse
Normalized outbound HTTP response returned by {@see HttpClient}.
AbstractWpController
Page-controller base for the WordPress adapter — the Inertia counterpart to the REST-only {@see AbstractWpRestController}.
AbstractWpRestController
Base for WordPress REST controllers: instance-based with a {@see RequestAuthenticatorInterface} injected for its permission callbacks (replacing the old static auth middleware), plus the sanitize seam readers, required-field validation and the `route()` registration helper.
InertiaAdapter
Per-component Inertia adapter for the WordPress admin SPA pipeline.
RestResponse
Standardized REST response envelope.
PublicRouteRegistrar
Public (front-end) routing surface: maps pretty URLs to handlers via the WordPress rewrite system, the third routing surface beside the REST {@see RestRouteRegistrar} and the admin {@see AdminRouteRegistrar}.
RestRouteAttributeRegistrar
Attribute-driven REST routing surface: the declarative counterpart of the imperative {@see RestRouteRegistrar}.
RestRouteRegistrar
REST routing surface: collects {@see RestControllerInterface} controllers and hands each the per-component namespace on register().
WpRouter
Symfony-backed router for the WordPress adapter, the counterpart of the Moodle adapter's `MoodleRouter`.
CsrfGuard
CSRF guard for the WordPress admin Inertia pipeline.
WpHttpKernel
WordPress-flavored HTTP kernel.
WpRestKernel
Dispatch kernel for attribute-routed WordPress REST controllers.
EmailSender
EmailTemplate
WpMailer
WordPress implementation of the framework mail port: maps a {@see Mail} value object onto `wp_mail()`.
WpdbConditionCompiler
Condition compiler for WordPress' `$wpdb` (MySQL / MariaDB).
QueryBuilder
VersionTracker
WordPress options-backed schema version tracker.
Kernel
WordPress application kernel (framework {@see KernelInterface} implementation).
WpHookfileLoader
WordPress-specific hookfile discovery.
PluginLifecycle
Plugin activation/deactivation registrar.
WpComponentContext
Neutral WordPress host context.
Nonce
Declares that a controller action (or every action of a controller) must carry a valid WordPress nonce for the given action string.
CapabilityRegistrar
Declarative custom-capability registration: describe which capabilities each role receives once, then apply on plugin activation and remove on deactivation/uninstall. Replaces the ad-hoc `add_cap()` loops every plugin reinvents.
Field
Declarative description of one admin settings field: the persisted option name, the control to render and how to sanitize it on save.
FieldRenderer
Renders a {@see Field} as its HTML control, reading the current value from the options table. All dynamic output is escaped; {@see FieldType::RawHtml} is the single deliberate escape hatch (the caller owns that markup).
Section
A titled group of fields inside a settings tab, mapped 1:1 onto a WordPress settings section.
SettingsPageRegistrar
Declarative settings pages: describe tabs → sections → {@see Field}s once and this registrar wires everything through the WordPress Settings API — `register_setting()` (with the field's type-default sanitizer), `add_settings_section()` and `add_settings_field()` (rendered by {@see FieldRenderer}).
Tab
One tab of a settings page. Each tab registers under its own page slug (`{page}-{tab}`) so WordPress renders only the active tab's sections.
AdminSupport
Boundary seam over the wp-admin menu/notice APIs. No-ops outside a WP runtime.
CacheSupport
Boundary seam over the WordPress Object Cache API (`wp_cache_*`) — request-scoped by default, persistent when a backend (Redis, Memcached) is dropped in. Mirrors the moodle adapter's CacheSupport. No-ops outside a WP runtime.
CacheSupportPsr16
PSR-16 adapter over the WordPress Object Cache (`wp_cache_*`), scoped to a single cache area (mapped to a `wp_cache` group). Persistent when a backend drop-in (Redis, Memcached) is installed; request-scoped otherwise.
MetaSupport
Boundary seam over the generic WordPress Metadata API (`get_metadata()` and friends) — covers every meta type (`post`, `user`, `term`, `comment`) with one surface. The Domain repositories keep their typed post/user helpers; this is the escape hatch for the rest. No-ops outside a WP runtime.
OptionSupport
Thin wrapper over WordPress's option read API (`get_option`).
PostTypeSupport
Boundary seam over the WordPress content-model registration API (`register_post_type()` / `register_taxonomy()`). No-ops outside a WP runtime so library code stays testable.
ShortcodeSupport
Boundary seam over the WordPress Shortcode API. No-ops outside a WP runtime.
TransientSupport
Boundary seam over the WordPress Transients API — TTL'd caching persisted in wp_options (or the object cache when a persistent backend is wired).
UploadSupport
Boundary seam over `wp_upload_dir()`. Empty strings outside a WP runtime.

Enums

CronInterval
Closed catalog of custom WP-Cron recurrences the adapter offers.
CheckScope
What layer a diagnostic check proves.
CheckStatus
Outcome of one diagnostic check, ordered by severity.
WooCommerceCapability
Closed catalog of WooCommerce capabilities.
WpCapability
Closed catalog of native WordPress core capabilities.
FieldType
Closed catalog of admin field controls the declarative settings framework can render. Each case knows its save-time default sanitizer so a plugin gets safe persistence without writing one callback per field.
On this page

Search results