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)); } }
public static function debug_loggging_enabled() { return WP_DEBUG || WP_DEBUG_LOG || UBConfig::remote_debug_logging_enabled(); }