Exemplo n.º 1
0
 public static function upload_logs_to_unbounce($url)
 {
     if (UBConfig::remote_debug_logging_enabled()) {
         $data = array('messages' => $GLOBALS['wp_log'][UBConfig::UB_PLUGIN_NAME], 'vars' => $GLOBALS['wp_log'][UBConfig::UB_PLUGIN_NAME . '-vars']);
         UBHTTP::send_event_to_events_gateway($url, UBEvents::log_event($data));
     }
 }
Exemplo n.º 2
0
 public static function debug_loggging_enabled()
 {
     return WP_DEBUG || WP_DEBUG_LOG || UBConfig::remote_debug_logging_enabled();
 }