Template Variables

HTML Forms provides several template variables you can use in your form content. These form variables will be dynamically replaced when the form is shown. Currently, you can use the following variables.


Will be replaced with the specified property of the currently logged-in user.

{{ user.user_email }}


This will be replaced with a parameter from the page URL, or with an empty string if the specified URL parameter does not exist.



This will be substituted with the specified property of the post that is viewed on the page the form is displayed on.


Related Posts from Our Knowledge Base

There are two ways to show your forms on your WordPress posts or pages. You can either use the shortcode or the block found in the WordPress block editor.

Extend or modify the default behavior of the HTML Forms WordPress plugin with our set of available action hooks.