Documentation

Definition

Table of Contents

Classes

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.
On this page

Search results