Developers
Actions and filters
Every hook with its arguments.
115 actions and filters, generated from the plugin's source. Hook names ending in {suffix} take a variable part, for example flvf_dynamic_value_utm_campaign.
Actions (35)
flvf_after_notification
After a notification email was handed to the mail transport (or failed).
| Argument | Type | Meaning |
|---|---|---|
$msg | array | Message: to, cc, bcc, reply_to, from_name, from_address, subject, html, text, attachments. |
$n | array | Notification settings. |
$entry | array | Entry row. |
In includes/Mail/Notifier.php:214
flvf_after_resend
After staff resent notifications of an entry.
| Argument | Type | Meaning |
|---|---|---|
$entry | array | Entry row. |
$ids | string[] | Notification ids that were queued. |
In includes/Mail/Notifier.php:518
flvf_after_submission
After a submission was stored and its emails, integrations and payment were queued.
| Argument | Type | Meaning |
|---|---|---|
$entry | array | Entry row. |
$doc | array | Form document (the version the entry was sent with). |
$out | array | Response sent to the visitor. |
In includes/Submit/Pipeline.php:386
flvf_before_bulk_action
Before a bulk action on entries.
| Argument | Type | Meaning |
|---|---|---|
$action | string | read, unread, star, unstar, spam, not_spam, trash, restore, delete, workflow, label_add, label_remove or resend. |
$ids | int[] | Entries the user may change. |
$value | mixed | Value of the action (status, labels or notifications). |
In includes/Rest/AdminEntries.php:846
flvf_before_delete_entry
Before an entry is deleted (Quform equivalent: quform_pre_delete_entry).
| Argument | Type | Meaning |
|---|---|---|
$e | array | Entry. |
In includes/Entries/Repository.php:451
flvf_before_delete_form
Before a form is deleted permanently.
| Argument | Type | Meaning |
|---|---|---|
$form_id | int | Form id. |
$delete_entries | bool | Whether its entries are deleted too. |
In includes/Forms/Repository.php:565
flvf_before_notification
Before a notification email is handed to the mail transport.
| Argument | Type | Meaning |
|---|---|---|
$msg | array | Message: to, cc, bcc, reply_to, from_name, from_address, subject, html, text, attachments. |
$n | array | Notification settings. |
$entry | array | Entry row. |
In includes/Mail/Notifier.php:190
flvf_before_render
Before a form renders (Quform equivalent: quform_pre_display).
| Argument | Type | Meaning |
|---|---|---|
$ctx | Context | Context. |
In includes/Render/FormRenderer.php:85
flvf_before_resend
Before staff resend notifications of an entry.
| Argument | Type | Meaning |
|---|---|---|
$entry | array | Entry row. |
$ids | string[] | Notification ids to resend. |
In includes/Mail/Notifier.php:497
flvf_daily_upkeep
Once a day, after the plugin removed expired drafts, exports, temporary files and old log events.
In includes/Plugin.php:94
flvf_enqueue_assets
After form assets are enqueued.
| Argument | Type | Meaning |
|---|---|---|
$ctx | Context | Context. |
In includes/Render/Assets.php:122
flvf_entries_imported
After a batch of entries was imported from a CSV file. Notifications and integrations do not run for imported entries; use this action to start your own processing.
| Argument | Type | Meaning |
|---|---|---|
$ids | int[] | New entry ids. |
$form_id | int | Form id. |
$import | string | Import id (the same for every batch of one import). |
In includes/Import/EntriesCsv.php:505
flvf_entry_created
After an entry is stored (Quform equivalents: quform_post_set_entry_id, quform_post_process).
| Argument | Type | Meaning |
|---|---|---|
$entry | array | Entry. |
$doc | array | Document. |
$values | array | Relevant values. |
In includes/Submit/Pipeline.php:344
flvf_entry_deleted
After an entry was deleted permanently with its values, files, notes and payments.
| Argument | Type | Meaning |
|---|---|---|
$id | int | Entry id. |
$entry | array | The entry row before deletion. |
In includes/Entries/Repository.php:465
flvf_entry_edited
After staff changed answers of an entry.
| Argument | Type | Meaning |
|---|---|---|
$entry | array | Entry row. |
$changed | string[] | Field ids that changed. |
In includes/Rest/AdminEntries.php:645
flvf_entry_updated
After staff changed an entry's state (read, star, status, spam, trash).
| Argument | Type | Meaning |
|---|---|---|
$id | int | Entry id. |
$changes | array | Changed columns. |
$before | array | The entry before the change. |
In includes/Rest/AdminEntries.php:513
flvf_export_done
After an export file was written.
| Argument | Type | Meaning |
|---|---|---|
$export | array | Export row: uuid, format, file, rows_done, user_id. |
In includes/Export/Jobs.php:342
flvf_form_created
After a form was created.
| Argument | Type | Meaning |
|---|---|---|
$id | int | Form id. |
In includes/Forms/Repository.php:65
flvf_form_deleted
After a form was deleted permanently.
| Argument | Type | Meaning |
|---|---|---|
$form_id | int | Form id. |
In includes/Forms/Repository.php:581
flvf_form_duplicated
After a form was duplicated.
| Argument | Type | Meaning |
|---|---|---|
$form_id | int | Original form id. |
$new_id | int | New form id. |
In includes/Forms/Repository.php:605
flvf_form_published
After a form version was published.
| Argument | Type | Meaning |
|---|---|---|
$form_id | int | Form id. |
$rev | int | Published revision id. |
$doc | array | Published document. |
In includes/Forms/Repository.php:387
flvf_hourly_upkeep
Once an hour, after scheduled entry deletions and payment checks.
In includes/Plugin.php:81
flvf_integration_finished
After an integration ran (successfully, failed, or waiting to retry).
| Argument | Type | Meaning |
|---|---|---|
$cfg | array | Integration settings in the form. |
$entry | array | Entry row. |
$result | \Flavonto\Forms\Jobs\Result | Result with status, error and data. |
In includes/Integrations/Runner.php:234
flvf_job_finished
After a background job ran.
| Argument | Type | Meaning |
|---|---|---|
$job | array | Job row: id, type, entry_id, payload, attempts. |
$status | string | done, queued (to retry) or failed. |
$result | \Flavonto\Forms\Jobs\Result | Result. |
In includes/Jobs/Runner.php:77
flvf_loaded
After Flavonto Forms registered its hooks. Use it to extend the plugin safely.
In includes/Plugin.php:64
flvf_migrated
After a database migration step ran.
| Argument | Type | Meaning |
|---|---|---|
$version | int | Schema version reached. |
In includes/Install/Migrations.php:35
flvf_payment_paid
After a payment was confirmed by the provider.
| Argument | Type | Meaning |
|---|---|---|
$payment | array | Payment row. |
$entry | array | Entry row. |
In includes/Payments/Store.php:232
flvf_payment_status_changed
After a payment changed state.
| Argument | Type | Meaning |
|---|---|---|
$payment | array | Payment (before the change). |
$to | string | New status. |
$entry | array | Entry. |
In includes/Payments/Store.php:224
flvf_post_created
After the "Create a post" action created a post.
| Argument | Type | Meaning |
|---|---|---|
$id | int | Post id. |
$entry | array | Entry row. |
$config | array | Action settings. |
In includes/Integrations/Adapters/CreatePost.php:206
flvf_post_validate
After answers were validated (Quform equivalent: quform_post_validate).
| Argument | Type | Meaning |
|---|---|---|
$errors | array | Errors by field id (empty when valid). |
$doc | array | Document. |
$c | Collector | Collected answers. |
$ctx | array | form_id, entry_id, today. |
In includes/Submit/Validator.php:162
flvf_pre_validate
Before answers are validated (Quform equivalent: quform_pre_validate).
| Argument | Type | Meaning |
|---|---|---|
$doc | array | Document. |
$c | Collector | Collected answers. |
$ctx | array | form_id, entry_id, today. |
In includes/Submit/Validator.php:138
flvf_rejected_submission
When a submission is refused before validation (spam trap, missing or wrong security token, too fast, rate limit).
| Argument | Type | Meaning |
|---|---|---|
$reason | string | honeypot, token, too_fast, rate or content. |
$form_id | int | Form id. |
In includes/Spam/Guard.php:36 and 4 more
flvf_settings_saved
After global settings were saved on the Settings screen.
| Argument | Type | Meaning |
|---|---|---|
$values | array | Saved settings. |
In includes/Rest/AdminSettings.php:144
flvf_upload_accepted
After an uploaded file passed the checks and was stored temporarily.
| Argument | Type | Meaning |
|---|---|---|
$uuid | string | Upload id. |
$form | array | Form row. |
$field_id | string | Field id. |
In includes/Uploads/Store.php:450
flvf_user_registered
After the "Create a user account" action created a user.
| Argument | Type | Meaning |
|---|---|---|
$uid | int | User id. |
$entry | array | Entry row. |
$config | array | Action settings. |
In includes/Integrations/Actions.php:357
Filters (80)
flvf_address_regions
Region names offered in address fields for a country.
| Argument | Type | Meaning |
|---|---|---|
$regions | string[] | Region names. |
$code | string | Country code. |
In includes/Support/Countries.php:138
flvf_admins_have_all_caps
Whether site administrators (manage_options) have every Flavonto Forms permission on single sites. Return false to rely on the roles screen only.
| Argument | Type | Meaning |
|---|---|---|
$all | bool | Default true. |
In includes/Install/Capabilities.php:143
flvf_allow_external_redirect
Whether a confirmation may send visitors to another site. Return false to allow only addresses on this site.
| Argument | Type | Meaning |
|---|---|---|
$allow | bool | Default true. |
$url | string | Address. |
In includes/Submit/Confirmation.php:108
flvf_allow_registration
Whether the "Create a user account" action may run for a form, even when WordPress registration is closed.
| Argument | Type | Meaning |
|---|---|---|
$allow | bool | Default true. |
$form | array | Form row. |
In includes/Integrations/Actions.php:172
flvf_bulk_option_presets
Lists offered in the builder's "Edit as text" choice editor (Quform equivalent: quform_bulk_options). Each list has an id, a label and items (the choice labels).
| Argument | Type | Meaning |
|---|---|---|
$presets | array | Lists. |
In includes/Fields/Presets.php:69
flvf_challenge_any_host
Accept reCAPTCHA, hCaptcha and Turnstile answers solved on another host name (for example behind a proxy that changes the host).
| Argument | Type | Meaning |
|---|---|---|
$any | bool | Default false. |
In includes/Spam/Challenge.php:78
flvf_client_ip
The visitor IP address used for rate limits, spam checks and (when stored) entries.
| Argument | Type | Meaning |
|---|---|---|
$ip | string | Address from REMOTE_ADDR, or from trusted proxy headers. |
In includes/Support/Ip.php:52
flvf_confirmation
Filter the confirmation (Quform equivalents: quform_confirmation_message, quform_confirmation_redirect_url).
| Argument | Type | Meaning |
|---|---|---|
$out | array | Confirmation. |
$data | array | Tag data. |
In includes/Submit/Confirmation.php:78
flvf_create_post_args
Arguments for wp_insert_post() in the "Create a post" action.
| Argument | Type | Meaning |
|---|---|---|
$post | array | Post arguments. |
$entry | array | Entry row. |
$config | array | Action settings. |
In includes/Integrations/Adapters/CreatePost.php:155
flvf_create_post_types
Post types offered by the "Create a post" action.
| Argument | Type | Meaning |
|---|---|---|
$types | array | Post type name => label. |
In includes/Integrations/Adapters/CreatePost.php:66
flvf_dashboard_entries
Query arguments of the dashboard widget's recent entries.
| Argument | Type | Meaning |
|---|---|---|
$args | array | Arguments for \Flavonto\Forms\Entries\Query::find(). |
In includes/Admin/Menu.php:391
flvf_database_refused_prefixes
Table name prefixes the "Database table" action refuses, in addition to WordPress core tables and Flavonto Forms tables.
| Argument | Type | Meaning |
|---|---|---|
$prefixes | string[] | Default: WooCommerce and Action Scheduler prefixes. |
In includes/Integrations/Adapters/Database.php:98
flvf_document_problems
Problems found by the builder's Check and before publishing. Add errors to block publishing, or warnings.
| Argument | Type | Meaning |
|---|---|---|
$problems | array | List of node, code, severity (error or warning) and message. |
$doc | array | Form document. |
In includes/Forms/Schema.php:826
flvf_dynamic_value
Filter a dynamic value (Quform equivalent: quform_element_value_{param}).
| Argument | Type | Meaning |
|---|---|---|
$value | mixed | Value or null. |
$key | string | Parameter name. |
$n | array | Field. |
$ctx | Context | Context. |
In includes/Render/Prefill.php:55
flvf_dynamic_value_{suffix}
A dynamic value for one parameter name, for example flvf_dynamic_value_utm_campaign. Return null to leave the field empty.
| Argument | Type | Meaning |
|---|---|---|
$value | mixed | Value or null. |
$n | array | Field. |
$ctx | \Flavonto\Forms\Render\Context | Render context. |
In includes/Render/Prefill.php:64
flvf_email_html
The complete HTML of an email (the layout around the message).
| Argument | Type | Meaning |
|---|---|---|
$html | string | HTML document. |
$body | string | Message HTML. |
$dir | string | Text direction, ltr or rtl. |
In includes/Mail/Template.php:41
flvf_encrypt_uploads
Force encryption of stored files even when the folder is private.
| Argument | Type | Meaning |
|---|---|---|
$encrypt | bool | Encrypt. |
In includes/Uploads/Store.php:161
flvf_entries_default_form
Form the Entries screen opens with when no form is chosen (0 lets the screen decide).
| Argument | Type | Meaning |
|---|---|---|
$form_id | int | Form id. |
In includes/Admin/Menu.php:274
flvf_entry_count
The number shown by [flavonto_form_count].
| Argument | Type | Meaning |
|---|---|---|
$n | int | Number. |
$form_id | int | Form id. |
$type | string | entries, remaining or limit. |
In includes/Embed/Shortcodes.php:157
flvf_entry_panels
Extra panels on the entry screen, for example data from another system. Each panel has a title and HTML (limited to the tags allowed in posts).
| Argument | Type | Meaning |
|---|---|---|
$panels | array | List of array( 'title' => string, 'html' => string ). |
$entry | array | Entry row. |
$doc | array | Form document of the entry. |
In includes/Rest/AdminEntries.php:340
flvf_export_columns
Columns of entry exports and of the entries list column chooser.
| Argument | Type | Meaning |
|---|---|---|
$cols | array | Columns: key, label, kind, type. |
$form_id | int | Form id. |
In includes/Export/Table.php:66
flvf_field_attributes
Attributes of a field's main input (Quform equivalent: element attribute filters). Keys with null or false are left out; the id, name and aria attributes are needed for accessibility and submission.
| Argument | Type | Meaning |
|---|---|---|
$attrs | array | Attributes. |
$n | array | Field. |
$ctx | Context | Render context. |
In includes/Render/FieldRenderer.php:546
flvf_field_classes
CSS classes of a field's wrapper.
| Argument | Type | Meaning |
|---|---|---|
$classes | string[] | Classes. |
$n | array | Field. |
$ctx | Context | Render context. |
In includes/Render/FieldRenderer.php:204
flvf_field_html
Filter the markup of a field.
| Argument | Type | Meaning |
|---|---|---|
$html | string | Markup. |
$n | array | Field. |
$ctx | Context | Render context. |
In includes/Render/FieldRenderer.php:66
flvf_field_options
Filter dynamic options (Quform recipe equivalent: dynamic select options).
| Argument | Type | Meaning |
|---|---|---|
$out | array | Options. |
$n | array | Field. |
$args | array | Arguments. |
In includes/Fields/Sources.php:125
flvf_field_types
Filter the field type definitions.
| Argument | Type | Meaning |
|---|---|---|
$t | array | Definitions keyed by type. |
In includes/Fields/Registry.php:1040
flvf_field_value
A field's answer after it was normalised and filtered, before validation (Quform equivalent: quform_get_value_{id}). Return the same shape the field type uses.
| Argument | Type | Meaning |
|---|---|---|
$value | mixed | Value. |
$n | array | Field. |
$row | array|null | Repeater row context, or null. |
In includes/Submit/Collector.php:142
flvf_field_visible
Whether a field is printed for this visitor (after its "Who sees this field" setting).
| Argument | Type | Meaning |
|---|---|---|
$visible | bool | Visible. |
$n | array | Field. |
$ctx | \Flavonto\Forms\Render\Context | Render context. |
In includes/Render/FieldRenderer.php:102
flvf_file_access
Allow or refuse a file download.
| Argument | Type | Meaning |
|---|---|---|
$ok | bool | Allowed. |
$row | array|null | Upload. |
In includes/Uploads/Links.php:123
flvf_form_config
Filter the runtime configuration (Quform equivalent: the form JS config filter).
| Argument | Type | Meaning |
|---|---|---|
$cfg | array | Configuration. |
$ctx | Context | Context. |
In includes/Render/RuntimeConfig.php:116
flvf_form_css
Custom CSS of one form; it is scoped to the form before printing.
| Argument | Type | Meaning |
|---|---|---|
$css | string | CSS from the form settings. |
$ctx | \Flavonto\Forms\Render\Context | Render context. |
In includes/Render/FormRenderer.php:760
flvf_form_document
This filter is documented in includes/Render/FormRenderer.php
In includes/Submit/Pipeline.php:87 and 1 more
flvf_form_settings
Filter the form settings definitions.
| Argument | Type | Meaning |
|---|---|---|
$list | array | Settings. |
In includes/Forms/FormSettings.php:185
flvf_global_settings
Definitions of the settings on the Settings screen. Added definitions are saved and sanitised like the built in ones.
| Argument | Type | Meaning |
|---|---|---|
$settings | array | Definitions: key, type, label, section, default, and options or help. |
In includes/Settings/Store.php:43
flvf_integrations
Integration adapters by type. Add a class that extends \Flavonto\Forms\Integrations\Adapter to offer your own integration.
| Argument | Type | Meaning |
|---|---|---|
$classes | array | Type => class name. |
In includes/Integrations/Runner.php:56
flvf_is_spam
Whether a submission is spam after the built in checks. Return true to keep it as spam or refuse it, as the form decides.
| Argument | Type | Meaning |
|---|---|---|
$spam | bool | Result of the built in checks. |
$values | array | Answers by field id. |
$form | array | Form row. |
$doc | array | Form document. |
In includes/Spam/Guard.php:133
flvf_job_handlers
Background job handlers by job type. A handler receives the job row and returns a \Flavonto\Forms\Jobs\Result.
| Argument | Type | Meaning |
|---|---|---|
$handlers | array | Type => callable. |
In includes/Jobs/Runner.php:31
flvf_licence_endpoint
Address of the licence server (HTTPS only, except local development hosts).
| Argument | Type | Meaning |
|---|---|---|
$endpoint | string | Default https://flavonto.com/wp-json/flavonto-licence/v1/ or FLVF_LICENCE_API. |
In includes/Licensing/Client.php:33
flvf_licence_is_staging
Whether this site counts as a staging copy that does not use a licence activation.
| Argument | Type | Meaning |
|---|---|---|
$staging | bool | Result of the built in host checks. |
$host | string | Site host name. |
In includes/Licensing/Manager.php:117
flvf_max_attachment_bytes
Largest total size of files attached to one email; above it, files are linked instead.
| Argument | Type | Meaning |
|---|---|---|
$bytes | int | Default 10 MB. |
In includes/Mail/Notifier.php:435
flvf_max_submission_bytes
Largest total size of all files uploaded to one submission.
| Argument | Type | Meaning |
|---|---|---|
$bytes | int | Default 256 MB. |
$form | array | Form row. |
$doc | array | Form document. |
In includes/Uploads/Store.php:413
flvf_media_filename
File name of an upload copied to the Media Library (sanitised and made unique afterwards).
| Argument | Type | Meaning |
|---|---|---|
$name | string | File name with its extension. |
$row | array | Upload row. |
$node | array | File field. |
$entry_id | int | Entry id. |
In includes/Uploads/Store.php:925
flvf_merge_tag
Value of a merge tag the plugin does not know, for example {myplugin:points}. Return null to leave the tag empty.
| Argument | Type | Meaning |
|---|---|---|
$value | string|null | Value. |
$ns | string | Namespace before the colon. |
$arg | string | Argument after the colon. |
$mod | string | Modifier after the bar. |
$data | array | Entry, form, document and source data. |
In includes/Tags/Tags.php:300
flvf_messages
Built in messages shown to visitors (validation, uploads, steps, network problems). Form settings override some of them.
| Argument | Type | Meaning |
|---|---|---|
$messages | array | Key => text. |
In includes/Render/Messages.php:31
flvf_meta_tag_allowed
Whether a page or user meta key may be read by {page:meta:key} and {user:meta:key}. Keys starting with an underscore are always refused.
| Argument | Type | Meaning |
|---|---|---|
$allowed | bool | Default true. |
$key | string | Meta key. |
In includes/Tags/Tags.php:377
flvf_multilingual_provider
Which multilingual plugin is used for form text: wpml, polylang or an empty string for none.
| Argument | Type | Meaning |
|---|---|---|
$provider | string | Detected provider. |
In includes/I18n/Multilingual.php:56
flvf_notification_mail
Change a message before it is sent (Quform equivalents: quform_pre_send_notification, quform_notification_mailer_config).
| Argument | Type | Meaning |
|---|---|---|
$msg | array | to, cc, bcc, reply_to, from_name, from_address, subject, html, text, attachments. |
$n | array | Notification. |
$entry | array | Entry. |
In includes/Mail/Notifier.php:182
flvf_pattern_presets
Patterns offered in the builder next to "Must match a pattern". Each has a label, a pattern (a regular expression without delimiters that works in PHP and JavaScript with the u flag) and an example.
| Argument | Type | Meaning |
|---|---|---|
$presets | array | Presets. |
In includes/Fields/Registry.php:265
flvf_paypal_order_params
Body of the PayPal Orders v2 create request.
| Argument | Type | Meaning |
|---|---|---|
$body | array | Request body. |
$payment | array | Payment row. |
$entry | array | Entry row. |
In includes/Payments/PayPal.php:210
flvf_plugin_name
Name of the plugin in the dashboard (white label). The menu itself stays "Forms".
| Argument | Type | Meaning |
|---|---|---|
$name | string | Default "Flavonto Forms". |
In includes/Admin/Menu.php:170
flvf_pre_process
Raw answers before they are read (Quform equivalent: quform_pre_process). Keys are field ids.
| Argument | Type | Meaning |
|---|---|---|
$input | array | Raw input from the flvf[] fields. |
$doc | array | Document. |
$req | Request | Request. |
In includes/Submit/Pipeline.php:135
flvf_prefill_from_entry
Answers filled in from an earlier entry named by a signed link.
| Argument | Type | Meaning |
|---|---|---|
$values | array | Field id => value. |
$entry | array | Source entry row. |
$ctx | Context | Render context. |
In includes/Render/FormRenderer.php:504
flvf_preload_assets
Whether to print form styles in the page head even though no form was found in the content (themes that print forms late).
| Argument | Type | Meaning |
|---|---|---|
$need | bool | Result of the content check and the "Always load form styles" setting. |
In includes/Render/Assets.php:166
flvf_private_dir
Folder for private files (uploads, exports). Must be writable and should be outside the web root.
| Argument | Type | Meaning |
|---|---|---|
$dir | string | Absolute path with a trailing slash. |
In includes/Uploads/Store.php:49
flvf_register_user_args
Arguments for wp_insert_user() in the "Create a user account" action.
| Argument | Type | Meaning |
|---|---|---|
$args | array | User arguments. |
$entry | array | Entry row. |
$config | array | Action settings. |
In includes/Integrations/Actions.php:317
flvf_registration_roles
Roles a public form may give new users. Roles that can manage users, plugins or options are removed before this filter.
| Argument | Type | Meaning |
|---|---|---|
$roles | array | Role => name. |
In includes/Integrations/Actions.php:49
flvf_resolve_host
Addresses for a host name instead of the plugin's own lookup, for split DNS setups and tests. The checks against private and reserved networks still apply to what is returned.
| Argument | Type | Meaning |
|---|---|---|
$ips | string[]|null | Addresses, or null to look the host up. |
$host | string | Host name. |
In includes/Support/SafeHttp.php:91
flvf_rich_tags
HTML tags and attributes allowed in rich text settings for people without the unfiltered_html capability.
| Argument | Type | Meaning |
|---|---|---|
$tags | array | wp_kses allowed tags. |
In includes/Support/Html.php:74
flvf_sanitize_integration_config
Sanitise the settings of an integration type the plugin does not know (added with flvf_integrations).
| Argument | Type | Meaning |
|---|---|---|
$clean | array | Settings after generic sanitising. |
$type | string | Integration type. |
$raw | array | Settings as received. |
In includes/Forms/Schema.php:590
flvf_secret_names
Credential names stored encrypted and edited as write only fields.
| Argument | Type | Meaning |
|---|---|---|
$names | array | Name => label. |
In includes/Settings/Store.php:97
flvf_setting
Value of a global setting.
| Argument | Type | Meaning |
|---|---|---|
$value | mixed | Stored value or default. |
$key | string | Setting key. |
In includes/Settings/Store.php:173
flvf_stripe_session_params
Filter the Stripe Checkout Session parameters.
| Argument | Type | Meaning |
|---|---|---|
$body | array | Parameters. |
$payment | array | Payment. |
$entry | array | Entry. |
In includes/Payments/Stripe.php:153
flvf_submission_response
Filter the response of a submission.
| Argument | Type | Meaning |
|---|---|---|
$out | array | Response. |
$req | Request | Request. |
In includes/Submit/Pipeline.php:56
flvf_templates
Add or remove templates (each item: id, title, category, description, features, and optionally doc).
| Argument | Type | Meaning |
|---|---|---|
$list | array | Templates. |
In includes/Templates/Library.php:43
flvf_uninstall_delete_data
Whether deleting the plugin also deletes its data. Hosts can force this for clean up scripts.
| Argument | Type | Meaning |
|---|---|---|
$delete | bool | From the "Delete all data" setting. |
In includes/Install/Uninstaller.php:34
flvf_update_package_hosts
Hosts update packages may be downloaded from (HTTPS only).
| Argument | Type | Meaning |
|---|---|---|
$hosts | string[] | Default flavonto.com and its subdomains. |
In includes/Licensing/Updater.php:112
flvf_upgrade_document
Filter a document after built in upgrades.
| Argument | Type | Meaning |
|---|---|---|
$doc | array | Document. |
In includes/Forms/Schema.php:162
flvf_upload_allowed
File types a file field accepts (lower case extensions). Types that can run code on a server or in a browser are removed afterwards whatever this returns.
| Argument | Type | Meaning |
|---|---|---|
$allowed | string[] | Extensions from the field settings. |
$node | array | File field. |
In includes/Uploads/Store.php:214
flvf_upload_check
Accept or refuse an uploaded file (return a WP_Error to refuse).
| Argument | Type | Meaning |
|---|---|---|
$ok | true|\WP_Error | Result. |
$tmp | string | Temporary path. |
$name | string | Name. |
$node | array | Field. |
In includes/Uploads/Store.php:243
flvf_upload_mime_map
Content types accepted for each file extension. Files of other extensions only pass the check for dangerous types.
| Argument | Type | Meaning |
|---|---|---|
$map | array | Extension => list of content types. |
In includes/Uploads/Store.php:295
flvf_upload_rate
Uploads allowed per minute from one IP address.
| Argument | Type | Meaning |
|---|---|---|
$per_minute | int | Default 40. |
In includes/Rest/PublicRoutes.php:337
flvf_validate_field
Custom validation for one field (Quform equivalent: quform_element_valid).
| Argument | Type | Meaning |
|---|---|---|
$result | string|true | True when valid, or an error message. |
$value | mixed | Normalised value. |
$n | array | Field. |
$ctx | array | form_id, entry_id. |
In includes/Submit/Validator.php:351
flvf_validate_form
Filter validation errors for the whole form (Quform equivalent: quform_post_validate).
| Argument | Type | Meaning |
|---|---|---|
$errors | array | Errors. |
$doc | array | Document. |
$c | Collector | Values. |
$ctx | array | Context. |
In includes/Submit/Validator.php:153
flvf_value_for_storage
An answer before it is stored (and encrypted when the field asks for it).
| Argument | Type | Meaning |
|---|---|---|
$value | mixed | Value. |
$fid | string | Field id. |
$entry_id | int | Entry id. |
In includes/Entries/Repository.php:225
flvf_value_from_storage
An answer after it was read (and decrypted).
| Argument | Type | Meaning |
|---|---|---|
$value | mixed | Value. |
$field_id | string | Field id. |
$entry_id | int | Entry id. |
In includes/Entries/Repository.php:327
flvf_value_html
An answer as HTML for entries and HTML emails.
| Argument | Type | Meaning |
|---|---|---|
$html | string | HTML. |
$n | array | Field. |
$value | mixed | Stored value. |
$locale | string | Locale used for formatting. |
In includes/Fields/Display.php:276
flvf_value_text
An answer as plain text for exports, plain text emails and merge tags.
| Argument | Type | Meaning |
|---|---|---|
$text | string | Text. |
$n | array | Field. |
$value | mixed | Stored value. |
$locale | string | Locale used for formatting. |
In includes/Fields/Display.php:197
flvf_visitor_country
Two letter country code of a visitor when the CDN header and GeoIP Detection give none.
| Argument | Type | Meaning |
|---|---|---|
$country | string | Default empty. |
$ip | string | IP address. |
In includes/Integrations/Geo.php:46
flvf_webhook_payload
Data a webhook sends.
| Argument | Type | Meaning |
|---|---|---|
$payload | array | Data. |
$config | array | Webhook settings. |
$data | array | Entry, form, document and source data. |
In includes/Integrations/Adapters/Webhook.php:192
flvf_zoho_api_version
Zoho CRM API version used by the Zoho integration.
| Argument | Type | Meaning |
|---|---|---|
$version | string | Default v6. |
In includes/Integrations/Adapters/Zoho.php:71