| 开发者 | mksddn |
|---|---|
| 更新时间 | 2026年2月20日 20:32 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/mksddn-forms-handler directory, or install the plugin through the WordPress plugins screen directly.[mksddn_fh_form id="form_id"] or [mksddn_fh_form slug="form-slug"] to display forms on your pages/start), then call:
https://api.telegram.org/bot{your_bot_token}/getUpdates
Look for the "chat" object in the JSON response and find the "id" field. Note: Group chat IDs are typically negative numbers.{form_title}, {date}, {time}, {datetime}, {page_url}{field:field_name} for field value, {field_label:field_name} for field labelb, i, u, s, code, pre, a
Enable "Use Custom Template" in Telegram settings and enter your template in the textarea.Yes! The plugin is designed to work with any WordPress theme. Forms are displayed using shortcodes and can be styled with CSS.
Yes, the plugin includes comprehensive security measures:
Yes! The plugin provides REST API endpoints for AJAX form submissions. Check the REST API section for details.
Yes! Enable "Accept any fields from frontend" in form settings (Advanced Settings section). This allows submitting any field names without defining them in Fields Configuration - perfect for custom forms where you control the HTML. All fields are still sanitized, but type validation is skipped. You can also use the mksddn_fh_allowed_fields filter in your theme's functions.php to dynamically allow specific fields or all fields (return ['*']).
Yes! Configure a redirect URL in form settings (Display tab). You can use:
/thank-you)
External domains are blocked by default for security. To allow external redirects, use the mksddn_fh_allowed_redirect_hosts filter to whitelist specific domains.get_page_url() method to extract page URL from refererarray_of_objects field type with full nested field validationarray_of_objects type only - prevents validation bypassvalidate_array_of_objects() method for comprehensive array validationsanitize_array_of_objects() method for type-based sanitizationfields propertytext type for arrays must be updated to array_of_objects typeoptions and multiple support in fields JSON/wp/v2/forms route; unified custom namespaceGET /wp-json/mksddn-forms-handler/v1/formsGET /wp-json/mksddn-forms-handler/v1/forms/{slug}uninstall.php to clean plugin options and transients (keeps CPT data)