List of Replacement Codes
When Groundhogg is installed the following replacement codes are available.
As you add extensions additional replacement codes will be available.
- Advanced Features Extension / Superlinks
- AffilitateWP Extension
- Booking Calendar
- Companies Extension
- Easy Digital Downloads Extension
- GiveWP Extension
- LifterLMS Extension
- Sales Pipeline
- Signed Contracts
- WooCommerce Extension
Contact Info
Replacement Code | Description | Meta Field Name |
---|---|---|
{id} |
The Contact's ID number | contact_id |
{first} |
The Contact's first name | first_name |
{last} |
The Contact's last name | last_name |
{full_name} |
The Contact's full name | full_name |
{email} |
The Contact's email address | email |
{phone} |
The Contact's primary phone number | primary_phone |
{phone_ext} |
The Contact's primary phone number and extension | primary_phone_extension |
{mobile_phone} |
The Contact's mobile phone number | mobile_phone |
{birthday} |
The Contact's birthday | birthday |
CRM
Replacement Code | Description | Meta Field Name |
---|---|---|
{tag_names} |
Tags assigned to Contact | tags |
{meta.attribute} *attribute is the internal name of the field |
Any data related to the Contact | |
{profile_picture.300} 300 is pixel size |
Profile picture in Contact | |
{optin_status} 300 is pixel size |
Optin-status for the Contact | optin_status |
{files} |
List of files stored in the Files tab for the Contact | copy_files |
Address
Replacement Code | Description | Meta Field Name |
---|---|---|
{line1} |
Line 1 of the Contact's address | street_address_1 |
{line2} |
Line 2 of the Contact's address | street_address_2 |
{city} |
The Contact's city | city |
{state} |
The Contact's state | region |
{zip_code} |
The Contact's postal code | postal_zip |
{country} |
The Contact's country | country *The field requires the 2-letter country code and does not accept the full name of the country. |
{country_code} |
The Contact's country code | |
{address} |
The Contact's full address | |
{ip_address} |
The Contact's IP address | ip_address |
{time_zone} |
The Contact's time zone | time_zone |
WP User
Replacement Code | Description | Meta Field Name |
---|---|---|
{username} |
WordPress username for the Contact | |
{user.attribute} *attribute, any user data i.e. {user.website} |
WordPress user meta for the Contact |
Contact Owner
Replacement Code | Description |
---|---|
{owner_first_name} |
Contact owner's first name |
{owner_last_name} |
Contact owner's last name |
{owner_email} |
Contact owner's email address |
{owner_phone} |
Contact the owner's phone number |
{owner_signature} |
Contact owner's signature |
{owner.(field)} |
Contact owner's data - This replacement code can pull data from either the "wp_user" table or the "wp_usermeta" table. Example from wp_user: {owner.ID} Example from wp_usermeta: {owner.description} *Similar replacement code {owner_meta.meta_key} |
Activity
Replacement Code | Description |
---|---|
{form_submission} or {form_submission.layout="stacked" fields="all" form="recent"} |
Displays all recent form fields into an email Available properties: layout(table, beside, stacked, below, normal) fields(all) form(last, newest, recent, first, oldest) hidden(default: false, true)* *If you are passing a hidden field and wish to display it, set it to true. |
Site
Replacement Code | Description |
---|---|
{business_name} |
Business Name |
{business_phone} |
Business Phone number |
{business_address} |
Business Address |
{site_url} |
Website URL |
{auto_login_link} |
Adds a link that will automatically log in to the contact if they have a user account |
{date.Y-m-d|now} |
Add date of Contact, adjustable display |
{local_date.Y-m-d|now} |
Add local date, adjustable display |
Post
Replacement Code | Description |
---|---|
{posts.layout=grid number=5 featured excerpt} |
Display posts with a choice of layout, quantity, featured, and include an excerpt |
{post_title} |
Display latest post title |
{post_excerpt} |
Display latest post excerpt |
{post_content} |
Display latest post content |
{post_featured_image} |
Display latest post featured image |
{post_featured_image_url} |
Display latest post featured image URL |
{post_link} |
Display latest post link(URL) |
Compliance
Replacement Code | Description |
---|---|
{confirmation_link} |
Provides a Confirmation link(HTML styled) |
{confirmation_link_raw} |
Provides a Confirmation URL |
{unsubscribe_link} |
Provides an Unsubscribe URL |
Replacement Code | Description |
---|---|
{view_in_browser_link} |
Provides a "View in browser link" |
Other
Replacement Code | Description |
---|---|
{GET.url_param} |
Outputs data passed from a link |
{groundhogg_day_quote} |
Displays a random quote from the movie Groundhog Day |
Formatting
Used with custom field checkboxes and multi-select options.
Replacement Code | Description |
---|---|
{andList.meta_key} |
Outputs arrays with the AND operator. The AND operator returns true only if all conditions are true. |
{orList.meta_key} |
Outputs arrays with the OR operator. The OR operator returns true if at least one of the conditions is true. |
{ol.meta_key} |
Outputs arrays as an ordered list. |
{ul.meta_key} |
Outputs arrays as an unordered list. |
{substr.{replacement}} |
Example output: Replacement code: full_name = "Phil Groundhogg" {substr.{full_name},0,4} would produce "Phil" |