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>
16 lines
484 B
JSON
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"
|
|
}
|