WhatsApp Chat WP - Version 4.3.3

Version Description

Hello! We've recently acquired this plugin and included tons of new features.

Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 WhatsApp Chat WP
Version 4.3.3
Comparing to
See all releases

Code changes from version 4.3.2 to 4.3.3

Files changed (4) hide show
  1. changelog.txt +3 -0
  2. includes/defaults.php +14 -3
  3. readme.txt +2 -2
  4. wp-whatsapp-chat.php +2 -2
changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  = 4.3.2 =
2
  * Fix. sanitize added to ajax search post
3
  * Fix. nonce validation added to qlwapp_dismiss_notice ajax action
1
+ = 4.3.3 =
2
+ * Fix. + removed from phone numbers
3
+
4
  = 4.3.2 =
5
  * Fix. sanitize added to ajax search post
6
  * Fix. nonce validation added to qlwapp_dismiss_notice ajax action
includes/defaults.php CHANGED
@@ -33,7 +33,7 @@ if (!class_exists('QLWAPP_Options')) {
33
  'position' => 'bottom-right',
34
  'text' => esc_html__('How can I help you?', 'wp-whatsapp-chat'),
35
  'icon' => 'qlwapp-whatsapp-icon',
36
- 'phone' => '+441234567890',
37
  'developer' => 'no',
38
  'rounded' => 'yes',
39
  'timefrom' => '08:00',
@@ -42,7 +42,7 @@ if (!class_exists('QLWAPP_Options')) {
42
  'box' => array(
43
  'enable' => 'no',
44
  'header' => '<h3>Hello!</h3><p>Click one of our representatives below to chat on WhatsApp or send us an email to <a href="mailto:hello@quadlayers.com">hello@quadlayers.com</a></p>',
45
- 'footer' => '<p>Call us to <a href="tel://542215676835">+542215676835</a> from <em><time>0:00hs</time></em> a <em><time>24:00hs</time></em></p>'
46
  ),
47
  'chat' => array(
48
  'emoji' => 'no',
@@ -52,7 +52,7 @@ if (!class_exists('QLWAPP_Options')) {
52
  0 => array(
53
  'chat' => true,
54
  'avatar' => 'https://www.gravatar.com/avatar/00000000000000000000000000000000',
55
- 'phone' => '+441234567890',
56
  'firstname' => 'John',
57
  'lastname' => 'Doe',
58
  'label' => esc_html__('Support', 'wp-whatsapp-chat'),
@@ -133,6 +133,17 @@ if (!class_exists('QLWAPP_Options')) {
133
 
134
  $options = get_option(QLWAPP_DOMAIN);
135
 
 
 
 
 
 
 
 
 
 
 
 
136
  if (isset($options['box']['enable']) && $options['box']['enable'] == 1) {
137
  $options['box']['enable'] = 'yes';
138
  }
33
  'position' => 'bottom-right',
34
  'text' => esc_html__('How can I help you?', 'wp-whatsapp-chat'),
35
  'icon' => 'qlwapp-whatsapp-icon',
36
+ 'phone' => '441234567890',
37
  'developer' => 'no',
38
  'rounded' => 'yes',
39
  'timefrom' => '08:00',
42
  'box' => array(
43
  'enable' => 'no',
44
  'header' => '<h3>Hello!</h3><p>Click one of our representatives below to chat on WhatsApp or send us an email to <a href="mailto:hello@quadlayers.com">hello@quadlayers.com</a></p>',
45
+ 'footer' => '<p>Call us to <a href="tel://542215676835">542215676835</a> from <em><time>0:00hs</time></em> a <em><time>24:00hs</time></em></p>'
46
  ),
47
  'chat' => array(
48
  'emoji' => 'no',
52
  0 => array(
53
  'chat' => true,
54
  'avatar' => 'https://www.gravatar.com/avatar/00000000000000000000000000000000',
55
+ 'phone' => '441234567890',
56
  'firstname' => 'John',
57
  'lastname' => 'Doe',
58
  'label' => esc_html__('Support', 'wp-whatsapp-chat'),
133
 
134
  $options = get_option(QLWAPP_DOMAIN);
135
 
136
+ if (isset($options['button']['phone'])) {
137
+ $options['button']['phone'] = str_replace('+', '', $options['button']['phone']);
138
+ }
139
+ if (isset($options['contacts'])) {
140
+ if (count($options['contacts'])) {
141
+ foreach ($options['contacts'] as $id => $c) {
142
+ $options['contacts'][$id]['phone'] = str_replace('+', '', $c['phone']);
143
+ }
144
+ }
145
+ }
146
+
147
  if (isset($options['box']['enable']) && $options['box']['enable'] == 1) {
148
  $options['box']['enable'] = 'yes';
149
  }
readme.txt CHANGED
@@ -5,11 +5,11 @@ Tags: whatsapp, button, chat, support, contact, click to chat, directly message
5
  Requires at least: 4.6
6
  Tested up to: 5.2
7
  Requires PHP: 5.3
8
- Stable tag: 4.3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
- Formerly WhatsApp Chat. This plugin allows your site visitors and customers to contact you or your team through WhatsApp chat with a single click.
13
 
14
  == Description ==
15
 
5
  Requires at least: 4.6
6
  Tested up to: 5.2
7
  Requires PHP: 5.3
8
+ Stable tag: 4.3.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
+ Formerly "WhatsApp Chat". This plugin allows your site visitors and customers to contact you or your team through WhatsApp chat with a single click.
13
 
14
  == Description ==
15
 
wp-whatsapp-chat.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Social Chat
4
  * Plugin URI: https://quadlayers.com/portfolio/wordpress-whatsapp-chat/
5
  * Description: WhatsApp Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
6
- * Version: 4.3.2
7
  * Author: QuadLayers
8
  * Author URI: https://quadlayers.com
9
  * License: GPL-2.0+
@@ -18,7 +18,7 @@ if (!defined('QLWAPP_PLUGIN_NAME')) {
18
  define('QLWAPP_PLUGIN_NAME', 'WP Social Chat');
19
  }
20
  if (!defined('QLWAPP_PLUGIN_VERSION')) {
21
- define('QLWAPP_PLUGIN_VERSION', '4.3.2');
22
  }
23
  if (!defined('QLWAPP_PLUGIN_FILE')) {
24
  define('QLWAPP_PLUGIN_FILE', __FILE__);
3
  * Plugin Name: WP Social Chat
4
  * Plugin URI: https://quadlayers.com/portfolio/wordpress-whatsapp-chat/
5
  * Description: WhatsApp Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
6
+ * Version: 4.3.3
7
  * Author: QuadLayers
8
  * Author URI: https://quadlayers.com
9
  * License: GPL-2.0+
18
  define('QLWAPP_PLUGIN_NAME', 'WP Social Chat');
19
  }
20
  if (!defined('QLWAPP_PLUGIN_VERSION')) {
21
+ define('QLWAPP_PLUGIN_VERSION', '4.3.3');
22
  }
23
  if (!defined('QLWAPP_PLUGIN_FILE')) {
24
  define('QLWAPP_PLUGIN_FILE', __FILE__);