gde_save_error

Capture activation errors ("unexpected output") to dx log.

Description

gde_save_error(); 

Usage

  1. if ( !function_exists( 'gde_save_error' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gde_save_error(); 
  7.  

Defined (1)

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

/functions.php  
  1. function gde_save_error() { 
  2. $buffer = ob_get_contents(); 
  3. if ( ! empty( $buffer ) ) { 
  4. gde_dx_log('Activation Msg: '. $buffer );