How to filter $content in shortcode function
I solved my own issue. I needed to filter out all the <br> and white space between my shortcode tags. WP was auto adding breaks which my functions was adding to the output of my shortcode. So I used the strip tags function to filter the $content of my shortcode $content = strip_tags($content); I added … Read more