PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.7.7
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.7.7
8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
chatbot / addons / automator / includes / actions / log.php

log.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 8.7.7, at addons/automator/includes/actions/log.php

40 lines 723 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Log Action
4 *
5 * @package WPbot_Automator
6 */
7
8 namespace WPbot_Automator\Actions;
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13
14 /**
15 * Class Log
16 */
17 class Log extends Action {
18
19 /**
20 * Constructor
21 */
22 public function __construct() {
23 $this->id = 'log';
24 $this->group = __( 'Utility', 'wpbot-automator' );
25 $this->title = __( 'Log Message', 'wpbot-automator' );
26 }
27
28 /**
29 * Execute the action
30 */
31 public function execute( $action_config, $trigger_data ) {
32 $message = isset( $action_config['message'] ) ? $action_config['message'] : 'Logged via automation';
33
34 // In a real scenario, this would write to our custom logs table.
35 //error_log( 'WPBOT-AUTOMATOR: ' . $message );
36
37 return true;
38 }
39 }
40