Shortcodes and Block Reference
[formglut]: show a form
[formglut id="3"]
| Attribute | Required | What it does |
|---|---|---|
id | Yes | The form ID. Find it on All Forms or in the editor’s Shortcode button. |
The form only shows when it is Active.
[formglut_gate]: hide content until a form is submitted
[formglut_gate form="3" days="30" message="Fill in the form to get the download."]
<a href="/files/guide.pdf">Download the guide</a>
[/formglut_gate]
| Attribute | Default | What it does |
|---|---|---|
form (or id) | — | The form that unlocks the content. |
days | 30 | Days the content stays unlocked on that browser (1–365). |
message | Fill in the form to see the content. | Text above the form. |
See Share Page and Gated Content.
FormGlut block
In the block editor, add the FormGlut block and pick a form. Block attributes: formId, align and className.
Elementor widget
In Elementor, search for the FormGlut widget and choose the form.
Shortcode and Action Hook fields
Two fields let you add your own output inside a form:
- Shortcode field: runs any shortcode where the field is placed.
- Action Hook field: calls a WordPress action, so a developer can print custom HTML with
add_action().
