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>
This commit is contained in:
3 files changed
+146
No files matched your search
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$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"
|
||||
}
|
||||
Reference in new issue
Block a user