Linux 软件免费装

MksDdn Forms Handler

开发者 mksddn
更新时间 2026年2月20日 20:32
PHP版本: 8.0 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

forms telegram rest-api google-sheets form-handler

下载

2.1.1 2.3.0 2.2.0 2.4.0 1.0.5 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 2.0.0 2.1.0

详情介绍:

MksDdn Forms Handler is a powerful and flexible form processing plugin that allows you to create and manage forms with multiple delivery methods. Perfect for websites that need reliable form handling with modern integrations. Key Features Use Cases Technical Features

安装:

  1. Upload the plugin files to the /wp-content/plugins/mksddn-forms-handler directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Forms menu to create and manage your forms
  4. Use the shortcode [mksddn_fh_form id="form_id"] or [mksddn_fh_form slug="form-slug"] to display forms on your pages

升级注意事项:

2.4.0 New feature: Redirect URL after form submission and custom Telegram templates with placeholders. Email notification settings migration. Enhanced error logging and localization. Recommended update. 2.3.0 Improvement: Localization for error messages and Telegram/email/Google Sheets UI. Telegram and email notifications use field labels from form config. Regex pattern validation fix. Attachment metadata generated only for images (faster uploads). Recommended update. 2.2.0 New feature: Tabbed interface for form settings with better organization. Improved localization for Google Sheets settings page. Admin structure improvements for better usability. Recommended update. 2.1.1 Improvement: Enhanced form accessibility with aria-label attributes for required fields without labels. Improved label management and form field handling. Recommended update for better accessibility compliance. 2.1.0 Improvement: Page URL field moved from submission info to submission data section. Page URL is now included in all notifications (email, Telegram, Google Sheets). Recommended update for better notification tracking. 2.0.0 Major update: Russian language support, form customization (custom submit button text, HTML after button, custom success messages), improved AJAX file uploads, enhanced security. Recommended update. 1.3.1 Compatibility update: Tested with WordPress 6.9. Recommended update for users upgrading to WordPress 6.9. 1.3.0 New array_of_objects field type with nested validation. Security: Arrays restricted to array_of_objects only. Update forms using text for arrays. Recommended for better security. 1.2.0 New feature: Support for nested arrays and objects in form submissions (e.g., product arrays). Improved display of complex data structures in admin, email, and Telegram. Recommended update for e-commerce and complex form integrations. 1.1.1 Security update: Fixed URL escaping in template examples. Recommended update for WordPress Coding Standards compliance. 1.1.0 New feature: Template functions for custom forms integration. Bug fix: Improved Telegram message formatting. Fully backward compatible.

常见问题:

How do I create my first form?

  1. Go to Forms > Add New in your WordPress admin
  2. Fill in the form title and description
  3. Configure the form settings in the meta box
  4. Add form fields in JSON format
  5. Set up delivery methods (email, Telegram, Google Sheets)
  6. Publish the form and use the shortcode to display it

How do I set up Telegram notifications?

  1. Create a Telegram bot using @BotFather
  2. Get your bot token
  3. Find your chat ID using one of these methods:
  4. Method 1 - Using getUpdates API: Send a message to your bot (e.g., /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.
  5. Method 2 - Using helper bots: Add @userinfobot, @ShowJsonBot, or @getidsbot to your chat - they will display the chat ID automatically
  6. Method 3 - For groups: Add your bot to the group, send a message, then use getUpdates API to retrieve the group chat ID
  7. Add the bot token and chat IDs in the form settings
  8. Enable "Send to Telegram" option
Custom Telegram Templates: You can create custom templates for Telegram notifications with placeholders:
  • System placeholders: {form_title}, {date}, {time}, {datetime}, {page_url}
  • Field placeholders: {field:field_name} for field value, {field_label:field_name} for field label
  • Supports HTML formatting: b, i, u, s, code, pre, a Enable "Use Custom Template" in Telegram settings and enter your template in the textarea.

How do I integrate with Google Sheets?

  1. Set up Google Sheets API credentials
  2. Create a spreadsheet and get the ID from the URL
  3. Configure the sheet name and API credentials
  4. Enable "Send to Google Sheets" option

Can I use this with custom themes?

Yes! The plugin is designed to work with any WordPress theme. Forms are displayed using shortcodes and can be styled with CSS.

Is the plugin secure?

Yes, the plugin includes comprehensive security measures:

  • Input validation and sanitization
  • Nonce verification
  • Capability checks
  • Rate limiting protection
  • SQL injection prevention

Can I submit forms via AJAX?

Yes! The plugin provides REST API endpoints for AJAX form submissions. Check the REST API section for details.

Can I use custom forms from my theme without configuring fields?

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 ['*']).

Can I redirect users after form submission?

Yes! Configure a redirect URL in form settings (Display tab). You can use:

  • Absolute URLs (same domain only for security)
  • Relative paths (e.g., /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.

更新日志:

2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.0 1.3.1 1.3.0 1.2.0 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0