Local Variables

Memberium has a concept of a local variable; being able to store data about the user in the local WordPress database, instead of Infusionsoft. This provides essentially unlimited fields (limited only by memory and disk space) for storing additional information. Local variables can be used in Memberium shortcode attributes.

You can capture data into local variables, you can display those variables to the screen, and you can use those variables in the parameters of shortcodes.

Local variables can be embedded into attributes by wrapping the variable in {{}}. Some variables have different syntaxes, and we may extend those syntaxes over time. Here’s some examples:

Example Usage

In this example, we’re showing how to insert a local variable (email) into a shortcode variable. You’ll see if you copy the example onto your page that {{contact.email}} is contained within the “redirect_url” parameter of the [memb_action_set] shortcode.

[memb_actionset_button button_text="Yes, Get Me Access" tag_ids="123" redirect_url="/promo/date-select.php?Email={{contact.email}}" css_class="my_button"]

We did this because a user wanted to put the email into the redirect link but you can’t put shortcodes inside of shortcodes. That’s part of why these local variables exist.

List of Codes

Contact Data


Author Contact ID (Added in 2.45)


Post ID (Added in 2.49.01)


Affiliate Record Data


Custom Fields


The visitor’s IP Address


The Current Date


Where “format” is the PHP date formatting code

Random Number Generator


GET/POST/Cookie Values



<<:: outputs [
::>> outputs ]
  • Was this Helpful?
  • YesNo
9 ways to add more value to your membership site

Table of Contents

Keep Reading

Upgrading from iMember360 to Memberium

This is a step by step guide to upgrading an iMember360 membership site for Infusionsoft to Memberium. Switching from iMember360 is fairly straightforward. Here are recommended best practices that we have developed over the past year after converting many sites. This process has been tested on sites ranging from a few users to 12,000 users:

Read More »

Protecting Your Amazon S3 Downloads with Memberium

In this article, we’ll show you how to protect your Amazon S3 download links from being shared on the internet. Memberium does this with expiring links that are automatically changed each time the page loads. After a link is clicked, it’s set to expire after a set amount of time to prevent sharing. Your users can always go back and get another link to view/download the file again.

Read More »

Want to get some fresh ideas on how you can improve your membership site or course?

Download our free ebook!

Book a Call

Welcome to Memberium!

We are very excited for you to be part of our family. 

We would love to answer any questions that you have!

Please choose the best time for you to get in a call with us. 

For Technical Support, you can contact us at https://memberium.com/support/ or Email us at support@memberium.com.