Support
Table of Contents
Classes
- 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.