PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.8.1
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.8.1
8.8.1 8.8.0 8.7.9 8.7.8 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 All 537 releases
← All changes | addons/automator/includes/actions/log.php +39 -39 8.7.9 → 8.8.1 View file →
@@ -1,39 +1,39 @@
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 -}
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 +}