wp_ob_end_flush_all

Flush all output buffers for PHP 5.2.

Description

wp_ob_end_flush_all(); 

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


Usage

  1. if ( !function_exists( 'wp_ob_end_flush_all' ) ) { 
  2. require_once ABSPATH . WPINC . '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_ob_end_flush_all(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/functions.php  
  1. function wp_ob_end_flush_all() { 
  2. $levels = ob_get_level(); 
  3. for ($i=0; $i<$levels; $i++) 
  4. ob_end_flush();