rwmb_debug_print

Prints or exports the content of the global debug array at the 'shutdown' hook.

Description

rwmb_debug_print(); 

Usage

  1. if ( !function_exists( 'rwmb_debug_print' ) ) { 
  2. require_once '/meta-box/meta-box.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rwmb_debug_print(); 
  7.  

Defined (1)

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

/meta-box/meta-box.php  
  1. function rwmb_debug_print() 
  2. global $rwmb_debug; 
  3. if ( ! $rwmb_debug || ( is_user_logged_in() && is_user_admin() ) ) 
  4. return; 
  5.  
  6. $html = '<h3>' . __( 'RW_Meta_Box Debug:', 'rwmb' ) . '</h3><pre>'; 
  7. foreach ( $rwmb_debug as $debug ) 
  8. $html .= "{$debug}<hr />"; 
  9. $html .= '</pre>'; 
  10.  
  11. die( $html );