PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.33
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.33
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / stripe / models / FrmTransLiteLog.php

FrmTransLiteLog.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.33, at stripe/models/FrmTransLiteLog.php

35 lines 699 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 class FrmTransLiteLog {
7
8 /**
9 * @since 6.12 The $is_error parameter was added.
10 *
11 * @param string $title
12 * @param string $text
13 * @param bool $is_error When this is false, the message will not be logged to the error log if the logging add-on is unavailable.
14 *
15 * @return void
16 */
17 public static function log_message( $title, $text, $is_error = true ) {
18 if ( ! class_exists( 'FrmLog' ) ) {
19 if ( $is_error ) {
20 error_log( $title . ': ' . $text );
21 }
22
23 return;
24 }
25
26 $log = new FrmLog();
27 $log->add(
28 array(
29 'title' => $title,
30 'content' => $text,
31 )
32 );
33 }
34 }
35