How do I assign this filter to a variable? (Appending php & markup to the_content)
Congratulations on (nearly) solving your problem already 🙂 There are 2 comments below the post that attempt to say how to do it the right way They are proposing to do it this way: function weedub_affiliate_filter($content) { $string_to_add = ”; if (is_single()) { $string_to_add = $string_to_add . ‘the string you wanted to add’; } $content … Read more