WordPress Plugin – Obtain output content without conflicts – SEO
I'm writing a WordPress plugin that obtain the HTML contents i found 2 ways to obtain the final output: // first way function __myplugin_callback($buffer) { return $buffer; } function __myplugin_buffer_start() { ob_start("callback"); } function __myplugin__buffer_end() { ob_end_flush(); } add_action('wp_head', 'buffer_start');…