ActiveCampaign
Also available forKeap

[memb_get]

Summary
This shortcode gets the variable from a URL and displays the output accordingly.

Description

Reads a value from the PHP $_GET superglobal — the parameters passed in the URL query string (everything after the ?). This is commonly used to display values such as UTM tracking tags, contact field data passed from an ActiveCampaign form redirect, or any URL parameter on a thank-you page.

Shortcode Examples

Display a URL parameter named source from a URL like /landing-page/?source=newsletter:

[memb_get name="source"]

Show a default value when the parameter is absent:

[memb_get name="source" default="organic"]

After an ActiveCampaign form submission, the thank-you page URL might include the submitter's first name. Display it with:

[memb_get name="firstname"]

Apply text formatting before displaying the value:

[memb_get name="firstname" txtfmt="ucwords"]

Shortcode Parameters

name(Optional) Comma-separated list of keys to look up in the $_GET superglobal. Supports nested traversal (e.g., user,id accesses $_GET['user']['id']).
default(Optional) Value to display if the requested key does not exist. Defaults to an empty string.
txtfmt(Optional) Comma-separated list of text processing functions to apply to the output.
capture(Optional) Captures the output and routes it to a variable for later use.
before(Optional) Text or HTML to insert before the output value.
after(Optional) Text or HTML to insert after the output value.
htmlattr(Optional) If set, outputs the value escaped for use inside an HTML attribute rather than as visible text.

Additional Information

When called with no name attribute — [memb_get] — the entire $_GET array is output via print_r for debugging purposes.

The name attribute accepts a comma-separated list of keys for nested array traversal. For example, name="user,id" will look up $_GET['user']['id'].

Shortcode Attributes

ConditionalNo
NestableNo
Accepts formattingYes
CapturableYes