After implementing the steps in this tutorial, you can have the heading text show
Most email marketing list providers provide an option to insert dynamic variables or tokens in the body of emails that you can blast to your list subscribers.
Let's say you launched a new product and want to make your list users feel special by displaying the user's first name on the product landing page.
You could build a link and append something
Now each user is going to see his/her first name next to "Hello" in the landing page header/body text.
We are going to
tothe list of public query variables that WordPress can process
- define a custom PHP function that displays the value of specified query variable (this will be sent in when calling this function), sanitizes it and converts the first letter to uppercase. Update: Added instructions to show a fallback text.
- use the PHP Function Return value feature in Oxygen and call our function defined with
fnameas the input
Install and activate Code Snippets plugin.
Go to Snippets > Add New.
Title: Add "fname" query variable
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $499 one-time).
Already a member? Log in below or here.