Skip to main content

PHP Hook Reference

English version coming soon

This page has not been translated to English yet. Please refer to the Japanese version for full details.

Form Plant exposes WordPress action / filter hooks at almost every stage of form processing — submission lifecycle, email sending, redirects, file uploads, fields, and form settings. Add a hook in your functions.php to extend behavior without modifying the plugin.

Validation hooks ( fplant_validate_* / fplant_validation_message_* ) have their own page: Validation Hooks (PHP).

Quick reference (selected)

🆕 = added in v1.2.0.

HookTypeArguments
fplant_after_submission_completeaction( $data, $form_id, $form, $submission_id )
fplant_redirect_url 🆕filter( $url, $form_id, $data )
fplant_complete_message 🆕filter( $message, $form_id, $data )
fplant_admin_email_to 🆕filter( $to, $form_id, $data )
fplant_admin_email_headers 🆕filter( $headers, $form_id, $data )
fplant_skip_admin_email / fplant_skip_user_email 🆕filter( $skip, $form, $data, $submission_id )
fplant_upload_dir 🆕filter( $custom_dir, $form_id )
fplant_field_choices_{name} 🆕filter( $options, $field, $form_id )
fplant_custom_mail_tag_value_{name} 🆕filter( $value, $field, $form_id )
fplant_custom_settings_fields 🆕filter( $fields, $form_id )
fplant_export_encoding 🆕filter( $encoding, $form_id )

Please refer to the Japanese version for the full categorized reference, argument signatures, timing, and code examples.