WP Manifestindependent plugin directory
manifest / developer / wordpress-output-buffering

Output Buffering

A simple mu-plugin that buffers the entire WP process, capturing the final output for DOM manipulation.

by Daniel M. Hendricks · github.com/dmhendricks/wordpress-output-buffering · website

16stars
32release downloads
≈10active sites
2forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/dmhendricks/wordpress-output-buffering/releases/download/1.0.5/output-buffering-1.0.5.zip

Declares an update source (dmhendricks/wordpress-output-buffering), so updates arrive through the plugin's own updater.

From the readme

WordPress Output Buffering A simple mu-plugin that buffers the entire WP process, capturing the final output for DOM manipulation. Original code by kfriend on Stack Overflow. Licensed as GPL because it is a WordPress derivative. Installation To install, simply download and copy output-buffering.php to your /wp-content/mu-plugins directory. Requires PHP 5.3 or higher. Tip Use HtmlPageDom in conjunction for jQuery-like DOM manipulation in PHP. Usage Simple Example This code will replace any instance of "foo" on the web page with "bar": Configuration By default, output buffering is only enabled on the frontend of the site and is disabled for WP Admin and during AJAX requests. You can modify this behavior and specify on which request/screen types that you want to enable it by adding the following constants to wp-config.php: PHP (PHP 5.3+) PHP 7.0 and Higher In the example above, output buffering is enable on the frontend ("site"), in WP Admin ("admin") and during AJAX requests ("ajax"). Add or remove from the array as desired. For example, to only load output buffering in WP Admin and not on the frontend or during AJAX calls: Caution Take care when changing this behav

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
1.0.5 Nov 17, 2018 output-buffering-1.0.5.zip 13
1.0.4 Jul 1, 2018 output-buffering-1.0.4.zip 9
1.0.3 Mar 24, 2018 output-buffering-1.0.3.zip 10

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.