Files
chrnx-dev-wp/blocks/subscribe-form/block.json
T
chrnxandClaude Opus 5 d1ad17f4be feat: add a provider-agnostic subscribe form
Reading settings take an HTTPS endpoint and the email field name, so
the form posts straight to Buttondown, Mailchimp, MailerLite or
anything else without the theme picking one. Without an endpoint the
block renders nothing rather than a form that goes nowhere.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-13 19:41:36 -05:00

16 lines
484 B
JSON

{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "chrnx/subscribe-form",
"version": "0.2.0",
"title": "Subscribe Form",
"category": "theme",
"description": "The email subscription form, rendered only when a provider endpoint is configured.",
"textdomain": "chrnx",
"attributes": {
"headingLevel": { "type": "integer", "default": 2, "enum": [2, 3, 4, 5, 6] }
},
"supports": { "html": false },
"render": "file:./render.php"
}