use EDD Content Restriction for restricting php in template
Since do_shortcode() needs it’s argument to be passed a string, instead of outputting the markup (e.g. echo()ing it), you should construct the markup as a string. There are many ways to do this. Below, I am using “string concatenation” (joining multiple strings into one) in order to add each relevant link to the same string … Read more