Wp Plugin Presenter

Design and review native presenter classes in WordPress plugins without requiring better-data - converting DTOs or domain objects into REST arrays, admin table rows, JS config payloads, email variables, and public view models with allowlisted fields, context methods, redaction by default, locale/date/number formatting, no DTO mutation, and correct WordPress escaping boundaries. Use when adding FooPresenter, response mappers, admin-row arrays, wp_send_json payloads, rest_ensure_response data, wp_add_inline_script config, or when code returns raw DTOs, WP_Post, WC_Order, get_object_vars, json_encode, or unescaped HTML from controllers.

Lonsdale201 Updated

File contents

Lonsdale201/wp-agent-skills/tree/main/plugin-scaffold/wp-plugin-presenter commit 5205b54d80

Frequently asked questions

npx skillmds@latest add lonsdale201/wp-plugin-presenter