Created
April 12, 2016 17:41
-
-
Save sibaberpollo/350af9b89fdd06073394af0f087a3d5c to your computer and use it in GitHub Desktop.
reescribir todo el html de un wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function callback($buffer) { | |
// modify buffer here, and then return the updated code | |
return $buffer; | |
} | |
function buffer_start() { ob_start("callback"); } | |
function buffer_end() { ob_end_flush(); } | |
add_action('wp_loaded', 'buffer_start'); | |
add_action('shutdown', 'buffer_end'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment