Forums
(@bensaysstuff)
3 years, 9 months ago
Hi Johan,
Thanks for the response. Indeed I am referring to shortcodes–sorry if that wasn’t clear. That would be a helpful feature, yes.
3 years, 10 months ago
A slightly more elegant approach, which allows for arbitrary parameter names:
foreach($atts as $att=>$val) { if($att != 'id') { $content = preg_replace("/\{\{ *" . $att . " *\}\}/i", $val, $content); } }