| 开发者 | reiji-sato |
|---|---|
| 更新时间 | 2026年9月21日 07:55 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/ directoryUse the shortcode [fplant id="YOUR_FORM_ID"] in your post or page content.
Yes, you can add custom CSS through the form settings, or use custom HTML templates for complete control over the layout.
Yes, the File Upload field type allows users to upload files with configurable size limits and file type restrictions.
[fplant_field] in an HTML template.allow_html option of a setting registered through fplant_custom_settings_fields had no effect when the form was saved from the editor — the tags were stripped before the setting was stored. The built-in HTML settings were not affected.fplant_form_output filter (replace the rendered form HTML or add to it; $context is shortcode, iframe or rest), fplant_form_unavailable_message filter (the text shown when a form does not accept submissions), and fplant_submission_gate filter (reject a submission with a WP_Error after validation and right before it is saved — for capacity limits, duplicate entries, or a check against an external service).fplant_layout_field_types filter with FPLANT_Field_Manager::get_layout_field_types() / is_layout_type(). A field type registered as a layout type holds no value, so it is skipped by validation, CSV export, emails, {all_fields}, webhooks and the email tag list, and is rendered without a label or error area — the treatment the built-in HTML field already had.fplant_html_setting_keys filter with FPLANT_Form_Manager::get_html_setting_keys() — the form settings whose value may contain HTML. fplant_form_is_submittable now receives a third $is_preview argument, true for a validation-only submission from the form preview.window.fplant.validateField( formId, fieldName ) (validate a single field and show its error), and a new fplant:validationError event (detail.source is client or server) that fires even when the HTML template contains no [fplant_errors] element.fplant-submit-button-style. A button carrying it gets the same appearance as the submit button, including the design presets and the Design adjustments settings. It adds no behavior.wp-content/uploads/fplant_uploads/). Sites using a file upload field should update.data-* and the common aria-* attributes on form controls, allows the <template> tag, and can be extended with the new fplant_allowed_form_html filter. The two Fixed items above were caused by these attributes being stripped.fplant_submission_detail_value_html filter (replace one value cell in the submission detail) and fplant_admin_email_attachments filter (attach extra files, restricted to the plugin's upload directory). The submission file download endpoint accepts optional row / sub parameters for files inside structured values. fplant_format_submission_value now also receives the submission ID, and the all-forms CSV export passes field definitions.FPLANT_Template_Loader::get_allowed_field_types() returns the effective list.FPLANT_Validator::validate_field_type() / validate_file() and FPLANT_Submission_Manager::upload_file_entry() are now public so add-ons can reuse the built-in validation and upload handling for their own sub-fields.{submission_id} (use it as a reference number), {field:field_name}, {all_fields}, {form_title} and the other system tags work in the success message and the completion page HTML. Password values are always masked there.[fplant_complete id="123"] shortcode. Redirect to a thank-you page and still show the completion screen (reference number, submitted values) there. Enable "Use the completion shortcode on the redirect page" in the form's redirect settings. The completion screen appears only right after a submission (once; not on reload), and visitors who open the page directly are sent back to the page that contains the form (or a URL you specify), so conversion tags on the thank-you page fire only after a real submission. The Form Plant block offers it as "Form name (Completion)".{field_name} shorthand tag now masks password values when "mask in emails" is enabled, the same as {field:field_name}.fplant_submission_result filter (switch the completion action based on the submitted data) and fplant_display_fields filter (drop fields from the confirmation screen and {all_fields} for a submission), both required by Form Plant Pro. FPLANT_Email_Handler::replace_tags() is now public static. New fplant_complete_shortcode_html and fplant_complete_token_ttl filters.fplant_template_values filter ({{key}} placeholders) now also works in iframe and JavaScript embeds — previously it only worked for forms placed with the shortcode or block.?post_id=123 and a field whose default value is {post_title}, {post_name}, {post_date}, {post_excerpt}, {post_content}, {ID} or {your_custom_field} is prefilled from that post (equivalent of MW WP Form's querystring feature). Only publicly viewable posts are read, and protected meta (_-prefixed keys) is never exposed.{placeholder} default value is no longer rendered as-is into the field.white-space: pre-wrap (or similar), it could shift the button label. If you have copied templates/confirmation.php or templates/form-fields/submit.php into your theme, update your copies as well.X-FPlant-Signature) for verification, one automatic retry on failure, delivery results shown with the saved submission, and a test-send button.fplant_webhook_should_send, fplant_webhook_payload, fplant_webhook_request_args, and fplant_webhook_allow_http.fplant_sanitize_field_value filter (custom field types keep array values; previously they were flattened on save), form configuration passed to fplant_complete_message / fplant_redirect_url / fplant_success_html, submission data passed to fplant_admin_email_subject / fplant_user_email_subject, a new front-end fplant:fieldChange event with public window.fplant.getFieldValue() / getFormData() accessors, and fplant:success now bubbles like other events.field[0][sub]) are now collected as nested values on the front end (also returned by getFormData()), stored as JSON with the submission, and rendered as plain text through the new fplant_format_submission_value filter in confirmation screens, emails, CSV export, and the admin detail view.form-plant/form-fields/submit.php).fplant_field_types, and the field editor exposes an extension socket (window.fplant.fields.registerTab) for add-ons.fplant_form_is_viewable / fplant_form_is_submittable filters.fplant_form_is_viewable, fplant_form_is_submittable, and fplant_preview_notice filters to control front-end visibility, submission, and the editor preview notice per form.fplant_custom_mail_tag_value_* filter) into the form, the saved submission, and the email body.block.json (block description and keywords) from Japanese to English so that English-locale sites display the correct text.window.fplant.addValidator, removeValidator, and form lifecycle events) for custom validation and behavior.GET /form-plant/v1/forms (capability: edit_posts) used by the block editor to list available forms.