How to hook in to the “output buffer” and add html content
You can use this class to buffer and filter any output coming from specific hook, or between two hooks. class HookBuffer { private static $buffers = []; private $buffer_name=””; private $buffer=””; private $buffer_status=”waiting”; private $priority1; private $priority2; private $tag1; private $tag2; private $output=FALSE; public function __construct( $buffer_name, $tag1=”, $tag2=” ) { if ( !( function_exists( … Read more