Developer hooks

Filters exposed by Sense Forms for customising behaviour in code.

Sense Forms exposes two filters. Add them to your theme’s functions.php or a small custom plugin.

sense_forms_max_upload_size

Changes the maximum accepted file upload size. Default is 5 MB.

add_filter( 'sense_forms_max_upload_size', function () {
    return 10 * MB_IN_BYTES;
} );

Your server’s upload_max_filesize and post_max_size still apply and are often lower. Raising this filter above them has no effect — change the PHP limits too.

sense_forms_min_submit_seconds

Changes the time trap threshold — the minimum seconds between a form rendering and being submitted. Default is 3.

add_filter( 'sense_forms_min_submit_seconds', function () {
    return 5;
} );

Raise it if automated submissions are getting through. Lower it for very short forms, where a real person can legitimately submit in under three seconds.

Constants

Define these in wp-config.php.

Constant Purpose
SENSEFORMS_SMTP_PASSWORD Supplies the SMTP password outside the database. Takes precedence over the stored value.

Styling hooks

Rather than filters, styling is done through CSS custom properties set on each form wrapper:

Property Controls
--pf-brand Accent colour
--pf-radius Base corner radius
--pf-radius-sm Derived smaller radius
--pf-radius-lg Derived larger radius

JavaScript

The tracker exposes a small API on the front end for recording custom events:

window.senseformsTracker.track( 'video_complete', {
    category: 'engagement',
    label: 'homepage-demo'
} );

Events are stored alongside your other visitor data.

Database tables

Sense Forms creates its own tables prefixed with your WordPress table prefix, covering forms, entries, visitors and sessions. Query them directly if you need to, but treat the schema as internal — it may change between releases. Prefer the CSV export for reporting.