FrmTransLiteLog.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.5, at stripe/models/FrmTransLiteLog.php
| 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 | * @param string $title |
| 10 | * @param string $text |
| 11 | * @return void |
| 12 | */ |
| 13 | public static function log_message( $title, $text ) { |
| 14 | if ( ! class_exists( 'FrmLog' ) ) { |
| 15 | error_log( $title . ': ' . $text ); |
| 16 | return; |
| 17 | } |
| 18 | |
| 19 | $log = new FrmLog(); |
| 20 | $log->add( |
| 21 | array( |
| 22 | 'title' => $title, |
| 23 | 'content' => $text, |
| 24 | ) |
| 25 | ); |
| 26 | } |
| 27 | } |
| 28 |