Version Description
= 8.1.x = Huge update with over 300 changes that include: Bugfixes, Vulnerability Fixes & Plugin Security, Plugin Optimization & Rebranding Updates. We suggest you remove any existing installations of this plugin and install 8.1.x fresh.
Download this release
Release Info
Developer | wpdev3cx |
Plugin | WP Live Chat Support |
Version | 9.0.7 |
Comparing to | |
See all releases |
Code changes from version 9.0.6 to 9.0.7
- config.php +1 -1
- includes/wplc_crons.php +26 -0
- readme.txt +1 -1
- wp-live-chat-support.php +1 -1
config.php
CHANGED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
9 |
|
10 |
define('WPLC_MIN_WP_VERSION', "5.3");
|
11 |
define('WPLC_MIN_PHP_VERSION', "5.4");
|
12 |
-
define('WPLC_PLUGIN_VERSION', "9.0.
|
13 |
define('WPLC_PLUGIN_DIR', dirname(__FILE__));
|
14 |
define('WPLC_PLUGIN_URL', wplc_plugins_url( '/', __FILE__ ) );
|
15 |
define('WPLC_PLUGIN', plugin_basename( __FILE__ ) );
|
9 |
|
10 |
define('WPLC_MIN_WP_VERSION', "5.3");
|
11 |
define('WPLC_MIN_PHP_VERSION', "5.4");
|
12 |
+
define('WPLC_PLUGIN_VERSION', "9.0.7");
|
13 |
define('WPLC_PLUGIN_DIR', dirname(__FILE__));
|
14 |
define('WPLC_PLUGIN_URL', wplc_plugins_url( '/', __FILE__ ) );
|
15 |
define('WPLC_PLUGIN', plugin_basename( __FILE__ ) );
|
includes/wplc_crons.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
die();
|
4 |
+
}
|
5 |
+
add_action( 'admin_init', 'wplc_schedule_update_chats' );
|
6 |
+
add_action( 'wplc_cron_update_chats_hook', 'wplc_cron_update_chats' );
|
7 |
+
add_filter( 'cron_schedules', 'wplc_five_minutes_schedule' );
|
8 |
+
function wplc_five_minutes_schedule( $schedules ) {
|
9 |
+
$schedules['five_minutes'] = array(
|
10 |
+
'interval' => 300,
|
11 |
+
'display' => esc_html__( 'Every Five Minutes' ), );
|
12 |
+
return $schedules;
|
13 |
+
}
|
14 |
+
|
15 |
+
function wplc_schedule_update_chats() {
|
16 |
+
if ( ! wp_next_scheduled( 'wplc_cron_update_chats_hook' ) ) {
|
17 |
+
wp_schedule_event( time() + 60, 'five_minutes', 'wplc_cron_update_chats_hook' );
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
function wplc_cron_update_chats(){
|
22 |
+
global $wpdb;
|
23 |
+
$chats = TCXChatData::get_incomplete_chats( $wpdb, - 1 ,array(ChatStatus::MISSED ,ChatStatus::OLD_ENDED ,ChatStatus::PENDING_AGENT ,ChatStatus::ACTIVE,ChatStatus::NOT_STARTED ,ChatStatus::ENDED_BY_AGENT ,ChatStatus::ENDED_BY_CLIENT,ChatStatus::ENDED_DUE_AGENT_INACTIVITY,ChatStatus::ENDED_DUE_CLIENT_INACTIVITY) );
|
24 |
+
TCXChatHelper::update_chat_statuses( $chats,false );
|
25 |
+
}
|
26 |
+
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: live chat, live support, chat plugin, live help, wordpress live chat, chat
|
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.4.2
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 9.0.
|
8 |
License: GPLv2
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Text Domain: wp-live-chat-support
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.4.2
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 9.0.7
|
8 |
License: GPLv2
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Text Domain: wp-live-chat-support
|
wp-live-chat-support.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP-Live Chat by 3CX
|
4 |
Plugin URI: https://www.3cx.com/wp-live-chat/
|
5 |
Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP-Live Chat by 3CX.
|
6 |
-
Version: 9.0.
|
7 |
Author: 3CX
|
8 |
Author URI: https://www.3cx.com/wp-live-chat/
|
9 |
Domain Path: /languages
|
3 |
Plugin Name: WP-Live Chat by 3CX
|
4 |
Plugin URI: https://www.3cx.com/wp-live-chat/
|
5 |
Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP-Live Chat by 3CX.
|
6 |
+
Version: 9.0.7
|
7 |
Author: 3CX
|
8 |
Author URI: https://www.3cx.com/wp-live-chat/
|
9 |
Domain Path: /languages
|