Click to Chat for WhatsApp Chat - Version 3.9.11

Version Description

= using FTP or similar = * Delete Click-to-Chat folder - your setting will not lost. * unzip Click-to-Chat file and * Upload "Click-to-Chat" folder to the "/wp-content/plugins/" directory. * Activate the plugin through the "Plugins" menu in WordPress.

= From Dashboard ( WordPress admin ) = * When a new version released - you can see 'update now' link at wp-admin -> plugins * click on 'update now' or * since WordPress 5.5, If auto update for the plugin is enabled.
plugin will update automatically when new version is released

After Activate the plugin, add WhatsApp Number at plugin settings.

Download this release

Release Info

Developer bhvreddy
Plugin Icon 128x128 Click to Chat for WhatsApp Chat
Version 3.9.11
Comparing to
See all releases

Code changes from version 3.9.10 to 3.9.11

click-to-chat.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Click to Chat
4
  Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
5
  Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
6
- Version: 3.9.10
7
  Author: HoliThemes
8
  Author URI: https://holithemes.com/plugins/click-to-chat/
9
  License: GPL2
@@ -17,7 +17,7 @@ if ( ! defined( 'WPINC' ) ) {
17
 
18
  // ctc - Version - update version at readme 'Stable tag'
19
  if ( ! defined( 'HT_CTC_VERSION' ) ) {
20
- define( 'HT_CTC_VERSION', '3.9.10' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
3
  Plugin Name: Click to Chat
4
  Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
5
  Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
6
+ Version: 3.9.11
7
  Author: HoliThemes
8
  Author URI: https://holithemes.com/plugins/click-to-chat/
9
  License: GPL2
17
 
18
  // ctc - Version - update version at readme 'Stable tag'
19
  if ( ! defined( 'HT_CTC_VERSION' ) ) {
20
+ define( 'HT_CTC_VERSION', '3.9.11' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
new/inc/chat/class-ht-ctc-chat.php CHANGED
@@ -281,7 +281,7 @@ class HT_CTC_Chat {
281
  *
282
  * dont load if its an AMP page or if no greetings dialog selected
283
  */
284
- if ( false == $is_amp && isset($greetings['greetings_template']) && 'no' !== $greetings['greetings_template'] ) {
285
  include HT_CTC_PLUGIN_DIR .'new/inc/greetings/class-ht-ctc-chat-greetings.php';
286
  }
287
 
281
  *
282
  * dont load if its an AMP page or if no greetings dialog selected
283
  */
284
+ if ( false == $is_amp ) {
285
  include HT_CTC_PLUGIN_DIR .'new/inc/greetings/class-ht-ctc-chat-greetings.php';
286
  }
287
 
new/inc/greetings/class-ht-ctc-chat-greetings.php CHANGED
@@ -30,6 +30,27 @@ class HT_CTC_Chat_Greetings {
30
 
31
  $ht_ctc_greetings = array();
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  $page_id = get_the_ID();
34
  // $page_id = get_queried_object_id();
35
 
@@ -89,27 +110,6 @@ class HT_CTC_Chat_Greetings {
89
  $post_title = esc_html( get_the_title( $page_id ) );
90
  }
91
 
92
-
93
- $ht_ctc_greetings['greetings_template'] = ( isset( $greetings['greetings_template']) ) ? esc_attr( $greetings['greetings_template'] ) : '';
94
- $ht_ctc_greetings['header_content'] = ( isset( $greetings['header_content']) ) ? esc_attr($greetings['header_content']) : '';
95
- $ht_ctc_greetings['main_content'] = ( isset( $greetings['main_content']) ) ? esc_attr($greetings['main_content']) : '';
96
- $ht_ctc_greetings['bottom_content'] = ( isset( $greetings['bottom_content']) ) ? esc_attr($greetings['bottom_content']) : '';
97
- $ht_ctc_greetings['call_to_action'] = ( isset( $greetings['call_to_action']) ) ? esc_attr( $greetings['call_to_action'] ) : '';
98
-
99
- $ht_ctc_greetings['is_opt_in'] = ( isset( $greetings_settings['is_opt_in']) ) ? esc_attr( $greetings_settings['is_opt_in'] ) : '';
100
- $ht_ctc_greetings['opt_in'] = ( isset( $greetings_settings['opt_in']) ) ? esc_attr( $greetings_settings['opt_in'] ) : '';
101
-
102
- if ('' == $ht_ctc_greetings['call_to_action']) {
103
- $ht_ctc_greetings['call_to_action'] = 'WhatsApp';
104
- }
105
-
106
- $ht_ctc_greetings = apply_filters( 'ht_ctc_fh_greetings_start', $ht_ctc_greetings );
107
-
108
- // return if template not set..
109
- if ( '' == $ht_ctc_greetings['greetings_template'] || 'no' == $ht_ctc_greetings['greetings_template'] ) {
110
- return;
111
- }
112
-
113
  $ht_ctc_greetings['header_content'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_greetings['header_content'], 'Click to Chat for WhatsApp', 'greetings_header_content' );
114
  $ht_ctc_greetings['main_content'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_greetings['main_content'], 'Click to Chat for WhatsApp', 'greetings_main_content' );
115
  $ht_ctc_greetings['bottom_content'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_greetings['bottom_content'], 'Click to Chat for WhatsApp', 'greetings_bottom_content' );
30
 
31
  $ht_ctc_greetings = array();
32
 
33
+ $ht_ctc_greetings['greetings_template'] = ( isset( $greetings['greetings_template']) ) ? esc_attr( $greetings['greetings_template'] ) : '';
34
+ $ht_ctc_greetings['header_content'] = ( isset( $greetings['header_content']) ) ? esc_attr($greetings['header_content']) : '';
35
+ $ht_ctc_greetings['main_content'] = ( isset( $greetings['main_content']) ) ? esc_attr($greetings['main_content']) : '';
36
+ $ht_ctc_greetings['bottom_content'] = ( isset( $greetings['bottom_content']) ) ? esc_attr($greetings['bottom_content']) : '';
37
+ $ht_ctc_greetings['call_to_action'] = ( isset( $greetings['call_to_action']) ) ? esc_attr( $greetings['call_to_action'] ) : '';
38
+
39
+ $ht_ctc_greetings['is_opt_in'] = ( isset( $greetings_settings['is_opt_in']) ) ? esc_attr( $greetings_settings['is_opt_in'] ) : '';
40
+ $ht_ctc_greetings['opt_in'] = ( isset( $greetings_settings['opt_in']) ) ? esc_attr( $greetings_settings['opt_in'] ) : '';
41
+
42
+ if ('' == $ht_ctc_greetings['call_to_action']) {
43
+ $ht_ctc_greetings['call_to_action'] = 'WhatsApp';
44
+ }
45
+
46
+ $ht_ctc_greetings = apply_filters( 'ht_ctc_fh_greetings_start', $ht_ctc_greetings );
47
+
48
+ // return if template not set..
49
+ if ( '' == $ht_ctc_greetings['greetings_template'] || 'no' == $ht_ctc_greetings['greetings_template'] ) {
50
+ return;
51
+ }
52
+
53
+
54
  $page_id = get_the_ID();
55
  // $page_id = get_queried_object_id();
56
 
110
  $post_title = esc_html( get_the_title( $page_id ) );
111
  }
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  $ht_ctc_greetings['header_content'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_greetings['header_content'], 'Click to Chat for WhatsApp', 'greetings_header_content' );
114
  $ht_ctc_greetings['main_content'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_greetings['main_content'], 'Click to Chat for WhatsApp', 'greetings_main_content' );
115
  $ht_ctc_greetings['bottom_content'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_greetings['bottom_content'], 'Click to Chat for WhatsApp', 'greetings_bottom_content' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Requires at least: 4.6
3
  Tested up to: 6.0
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
- Stable tag: 3.9.10
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, WhatsApp WooCommerce, whatsapp wordpress, whatsapp floating button, whatsapp icon, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -503,6 +503,9 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
503
 
504
  == Changelog ==
505
 
 
 
 
506
  = 3.9.10 =
507
  * Fix: uncaught error at Greetings page
508
 
3
  Tested up to: 6.0
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
+ Stable tag: 3.9.11
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, WhatsApp WooCommerce, whatsapp wordpress, whatsapp floating button, whatsapp icon, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
503
 
504
  == Changelog ==
505
 
506
+ = 3.9.10 =
507
+ * Fix: compatibility issues
508
+
509
  = 3.9.10 =
510
  * Fix: uncaught error at Greetings page
511