Nested shortcode functions accessing variable
After a bit of lateral thinking and lots of testing I was able to come up with a solution that negated the need for scope crossing variables, or using a global variable for that matter. The code goes like this: Split the nested $content(nested shortcodes) into single shortcodes with preg_match_all Apply do_shortcode to each shortcode … Read more