automattic / jetpack-forms
Jetpack Forms
v0.32.16
2024-09-16 14:37 UTC
Requires
- php: >=7.0
- automattic/jetpack-assets: ^2.3.8
- automattic/jetpack-blocks: ^2.0.6
- automattic/jetpack-connection: ^4.0.3
- automattic/jetpack-logo: ^2.0.4
- automattic/jetpack-status: ^4.0.1
- automattic/jetpack-sync: ^3.13.0
Requires (Dev)
- automattic/jetpack-changelogger: ^4.2.6
- automattic/jetpack-connection: ^4.0.3
- automattic/wordbless: ^0.4.1
- yoast/phpunit-polyfills: ^1.1.1
Suggests
- automattic/jetpack-autoloader: Allow for better interoperability with other plugins that use this package.
- dev-trunk / 0.33.x-dev
- v0.32.16
- v0.32.15
- v0.32.14
- v0.32.13.1
- v0.32.13
- v0.32.12
- v0.32.11
- v0.32.10
- v0.32.9
- v0.32.8
- v0.32.7
- v0.32.6
- v0.32.5
- v0.32.4
- v0.32.3
- v0.32.2
- v0.32.1
- v0.32.0
- v0.31.4
- v0.31.3
- v0.31.2
- v0.31.1
- v0.31.0
- v0.30.18
- v0.30.17
- v0.30.16
- v0.30.15
- v0.30.14
- v0.30.13
- v0.30.12
- v0.30.11
- v0.30.10
- v0.30.9
- v0.30.8
- v0.30.7
- v0.30.6
- v0.30.5
- v0.30.4
- v0.30.3
- v0.30.2
- v0.30.1
- v0.30.0
- v0.29.2
- v0.29.1
- v0.29.0
- v0.28.0
- v0.27.0
- v0.26.0
- v0.25.0
- v0.24.2
- v0.24.1
- v0.24.0
- v0.23.1
- v0.23.0
- v0.22.6
- v0.22.5
- v0.22.4
- v0.22.3
- v0.22.2
- v0.22.1
- v0.22.0
- v0.21.0
- v0.20.1
- v0.20.0
- v0.19.11
- v0.19.10
- v0.19.9
- v0.19.8
- v0.19.7
- v0.19.6
- v0.19.5
- v0.19.4
- v0.19.3
- v0.19.2
- v0.19.1
- v0.19.0
- v0.18.0
- v0.17.0
- v0.16.0
- v0.15.0
- v0.14.1
- v0.14.0
- v0.13.0
- v0.12.0
- v0.11.0
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.0.2
- v0.6.0.1
- v0.6.0
- v0.5.1
- v0.5.0
- v0.4.0
- v0.3.0
- v0.2.1
- v0.2.0
- v0.1.0
- dev-prerelease
- dev-release-v0.10.2
- dev-release-v0.6.0.2
- dev-release-v0.6.0.1
- dev-release-v0.2.1
This package is auto-updated.
Last update: 2024-09-18 14:17:29 UTC
README
所有与表单相关的内容。此软件包目前包含Jetpack联系表单模块、表单块以及新的Jetpack Forms反馈仪表板。
层次结构
.
├── src/
│ ├── blocks/ - Form blocks.
│ ├── contact-form/ - Contact form module implementation.
│ ├── dashboard/ - Implementation for the new forms dashboard.
│ ├── service/ - Helpers for 3rd-party service integrations.
│ ├── class-jetpack-forms.php - Package entrypoint.
│ └── class-wpcom-rest-api-v2-endpoint-forms.php - WP.com REST API endpoints definition.
│
└── tools/ - Webpack configuration for all bundles in the package.
查看各个子目录以获取更多信息。
API端点
此软件包添加以下WP.com REST API端点
GET /forms/responses
返回联系表单响应列表。
支持的参数
parent_id
: (int) 通过父帖ID过滤响应。limit
: (int) 限制返回响应的数量。month
: (string) 通过月份过滤响应。格式:YYYYMM
offset
: (int) 偏移返回的响应。search
: (string) 搜索包含给定字符串的任何字段的响应。status
: (string) 通过状态过滤响应。支持值:inbox
、spam
、trash
。
响应
{ "filters_available": { "month": [ { "month": 1, "year": 2023 }, { "month": 3, "year": 2023 }, ], "source": [ { "id": 55, "title": "Contact Page", "url": "https://jetpackme.wordpress.com/contact-support", } ], }, "responses": [ { "id": 123, "entry_permalink": "https://jetpackme.wordpress.com/contact-support", "entry_title": "Contact Page", "ip": "127.0.0.1", "date": "2023-01-05T00:00:00", "fields": { "1_Name": "John Smith", "2_Email": "[email protected]", "3_Message": "Help!", }, }, { "id": 213, "entry_permalink": "https://jetpackme.wordpress.com/contact-support", "entry_title": "Contact Page", "ip": "127.0.0.1", "date": "2023-03-20T05:23:00", "fields": { "1_Name": "John Smith", "2_Email": "[email protected]", "3_Message": "Lorem Ipsum", }, }, ], "totals": { "inbox": 2, "spam": 0, "trash": 1, }, }
POST /forms/responses/bulk_actions
对响应ID列表执行批量操作。
支持的参数
action
: (string) 要执行的操作。支持值:mark_as_spam
、mark_as_not_spam
、trash
、untrash
、delete
(永久删除响应)。post_ids
: (int[]) 要执行操作的响应ID列表。
响应
{}
在WordPress插件中使用此软件包
如果您计划在WordPress插件中使用此软件包,我们建议您使用 Jetpack Autoloader 作为自动加载器。这将允许与其他使用此软件包的插件实现最大兼容性。
安全性
需要报告安全漏洞?请访问 https://automattic.com/security/ 或直接访问我们的安全漏洞赏金网站 https://hackerone.com/automattic。
许可证
forms 适用于 GNU通用公共许可证第2版(或更高版本)