is it feasible in some way to complete / print content inside a WordPress shortcode filter, not give it back? I am talking about, shortcode functions generally return output, but don't print. Basically tell my shortcode function to print, it results the labored trough shortcode content in the actual beginning of content and that i don have no possibility to utilize it anymore.
I am hoping, someone might help me, if someony has understood what i'm saying )
Easy! Use output buffering.
ob_start(); // content is no longer output but is captured internally echo 'buffered output'; // business as usual $output = ob_get_contents(); // pass captured content to variable and // terminate output buffering (echo beyond this point prints again) return $output; // or play with it some more