wp_ob_end_flush_all() WordPress Function

The wp_ob_end_flush_all() function is used to end output buffering and flush all buffers. This function is useful for debugging purposes.

wp_ob_end_flush_all() #

Flush all output buffers for PHP 5.2.


Description

Make sure all output buffers are flushed before our singletons are destroyed.


Top ↑

Source

File: wp-includes/functions.php

function wp_ob_end_flush_all() {
	$levels = ob_get_level();
	for ( $i = 0; $i < $levels; $i++ ) {
		ob_end_flush();
	}
}


Top ↑

Changelog

Changelog
VersionDescription
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More