jssb_output

The Jetpack - Status Board jssb output function.

Description

jssb_output( $output ); 

Parameters (1)

0. $output
The output.

Usage

  1. if ( !function_exists( 'jssb_output' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-status-board/jetpack-status-board.php'; 
  3.  
  4. // The output. 
  5. $output = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jssb_output($output); 
  9.  

Defined (1)

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

/jetpack-status-board.php  
  1. function jssb_output( $output ) { 
  2. $ob_status = ob_get_level(); 
  3. while ( $ob_status > 0 ) { 
  4. ob_end_clean(); 
  5. $ob_status--; 
  6.  
  7. header( 'Content-Type: application/json' ); 
  8. echo json_encode( $output ); 
  9. exit;