Version Description
- Hide messenger based on page type ( now - check to hide )
Download this release
Release Info
Developer | bhvreddy |
Plugin | WP-Chatbot for Facebook Messenger Customer Chat |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- admin/class-htcc-admin.php +57 -57
- inc/class-htcc-chatbot.php +7 -7
- inc/class-htcc-db.php +9 -8
- readme.txt +17 -10
- wp-chatbot.php +4 -4
admin/class-htcc-admin.php
CHANGED
@@ -74,15 +74,15 @@ class HTCC_Admin {
|
|
74 |
add_settings_field( 'htcc_fb_app_id', 'Facebook App ID', array( $this, 'htcc_fb_app_id_cb' ), 'htcc_options_settings', 'htcc_settings' );
|
75 |
add_settings_field( 'htcc_fb_page_id', 'Facebook Page ID', array( $this, 'htcc_fb_page_id_cb' ), 'htcc_options_settings', 'htcc_settings' );
|
76 |
|
77 |
-
add_settings_field( 'htcc_show_hide', '
|
78 |
|
79 |
-
add_settings_field( 'htcc_list_id_tohide', '
|
80 |
add_settings_field( 'htcc_list_cat_tohide', 'Categorys to Hide', array( $this, 'htcc_list_cat_tohide_cb' ), 'htcc_options_settings', 'htcc_settings' );
|
81 |
}
|
82 |
|
83 |
// section heading
|
84 |
function htcc_settings_section_cb() {
|
85 |
-
echo '<h1>
|
86 |
}
|
87 |
|
88 |
public function htcc_enable_cb() {
|
@@ -103,7 +103,7 @@ class HTCC_Admin {
|
|
103 |
?>
|
104 |
<input type="text" name="htcc_options[fb_app_id]" id="" value="<?php echo esc_attr( $htcc_fb_app_id['fb_app_id'] ) ?>">
|
105 |
|
106 |
-
<p class="description">Facebook App ID - <a target="_blank" href="">moreinfo</a> </p>
|
107 |
<?php
|
108 |
}
|
109 |
|
@@ -115,7 +115,7 @@ class HTCC_Admin {
|
|
115 |
<input type="text" name="htcc_options[fb_page_id]" id="" value="<?php echo esc_attr( $htcc_fb_page_id['fb_page_id'] ) ?>">
|
116 |
|
117 |
|
118 |
-
<p class="description">Facebook Page ID - <a target="_blank" href="">moreinfo</a> </p>
|
119 |
<?php
|
120 |
}
|
121 |
|
@@ -125,54 +125,54 @@ class HTCC_Admin {
|
|
125 |
$htcc_checkbox = get_option('htcc_options');
|
126 |
|
127 |
// Single Posts
|
128 |
-
if ( isset( $htcc_checkbox['
|
129 |
?>
|
130 |
<p>
|
131 |
-
<input name="htcc_options[
|
132 |
-
<label for="filled-in-box1">Posts</label>
|
133 |
</p>
|
134 |
<?php
|
135 |
} else {
|
136 |
?>
|
137 |
<p>
|
138 |
-
<input name="htcc_options[
|
139 |
-
<label for="filled-in-box1">Posts</label>
|
140 |
</p>
|
141 |
<?php
|
142 |
}
|
143 |
|
144 |
|
145 |
// Page
|
146 |
-
if ( isset( $htcc_checkbox['
|
147 |
?>
|
148 |
<p>
|
149 |
-
<input name="htcc_options[
|
150 |
-
<label for="filled-in-box2">Pages</label>
|
151 |
</p>
|
152 |
<?php
|
153 |
} else {
|
154 |
?>
|
155 |
<p>
|
156 |
-
<input name="htcc_options[
|
157 |
-
<label for="filled-in-box2">Pages</label>
|
158 |
</p>
|
159 |
<?php
|
160 |
}
|
161 |
|
162 |
|
163 |
// Home Page
|
164 |
-
if ( isset( $htcc_checkbox['
|
165 |
?>
|
166 |
<p>
|
167 |
-
<input name="htcc_options[
|
168 |
-
<label for="filled-in-box3">Home Page</label>
|
169 |
</p>
|
170 |
<?php
|
171 |
} else {
|
172 |
?>
|
173 |
<p>
|
174 |
-
<input name="htcc_options[
|
175 |
-
<label for="filled-in-box3">Home Page</label>
|
176 |
</p>
|
177 |
<?php
|
178 |
}
|
@@ -182,18 +182,18 @@ class HTCC_Admin {
|
|
182 |
A front page is also a home page, but home page is not a front page
|
183 |
if front page unchecked - it works on both homepage and fornt page
|
184 |
but if home page is unchecked - it works only on home page, not on front page */
|
185 |
-
if ( isset( $htcc_checkbox['
|
186 |
?>
|
187 |
<p>
|
188 |
-
<input name="htcc_options[
|
189 |
-
<label for="filled-in-box4">Front Page</label>
|
190 |
</p>
|
191 |
<?php
|
192 |
} else {
|
193 |
?>
|
194 |
<p>
|
195 |
-
<input name="htcc_options[
|
196 |
-
<label for="filled-in-box4">Front Page</label>
|
197 |
</p>
|
198 |
<?php
|
199 |
}
|
@@ -201,18 +201,18 @@ class HTCC_Admin {
|
|
201 |
|
202 |
|
203 |
// Category
|
204 |
-
if ( isset( $htcc_checkbox['
|
205 |
?>
|
206 |
<p>
|
207 |
-
<input name="htcc_options[
|
208 |
-
<label for="filled-in-box5">Category</label>
|
209 |
</p>
|
210 |
<?php
|
211 |
} else {
|
212 |
?>
|
213 |
<p>
|
214 |
-
<input name="htcc_options[
|
215 |
-
<label for="filled-in-box5">Category</label>
|
216 |
</p>
|
217 |
<?php
|
218 |
}
|
@@ -220,18 +220,18 @@ class HTCC_Admin {
|
|
220 |
|
221 |
|
222 |
// Archive
|
223 |
-
if ( isset( $htcc_checkbox['
|
224 |
?>
|
225 |
<p>
|
226 |
-
<input name="htcc_options[
|
227 |
-
<label for="filled-in-box6">Archive</label>
|
228 |
</p>
|
229 |
<?php
|
230 |
} else {
|
231 |
?>
|
232 |
<p>
|
233 |
-
<input name="htcc_options[
|
234 |
-
<label for="filled-in-box6">Archive</label>
|
235 |
</p>
|
236 |
<?php
|
237 |
}
|
@@ -239,23 +239,23 @@ class HTCC_Admin {
|
|
239 |
|
240 |
|
241 |
// 404 Page
|
242 |
-
if ( isset( $htcc_checkbox['
|
243 |
?>
|
244 |
<p>
|
245 |
-
<input name="htcc_options[
|
246 |
-
<label for="filled-in-box7">404 Page</label>
|
247 |
</p>
|
248 |
<?php
|
249 |
} else {
|
250 |
?>
|
251 |
<p>
|
252 |
-
<input name="htcc_options[
|
253 |
-
<label for="filled-in-box7">404 Page</label>
|
254 |
</p>
|
255 |
<?php
|
256 |
}
|
257 |
?>
|
258 |
-
<p class="description"> check to
|
259 |
|
260 |
|
261 |
<?php
|
@@ -267,7 +267,7 @@ class HTCC_Admin {
|
|
267 |
$htcc_list_id_tohide = get_option('htcc_options');
|
268 |
?>
|
269 |
<input name="htcc_options[list_hideon_pages]" value="<?php echo esc_attr( $htcc_list_id_tohide['list_hideon_pages'] ) ?>" id="htcc_list_id_tohide" type="text">
|
270 |
-
<p class="description"> Add Post,
|
271 |
<?php
|
272 |
}
|
273 |
|
@@ -276,7 +276,7 @@ class HTCC_Admin {
|
|
276 |
$htcc_list_cat_tohide = get_option('htcc_options');
|
277 |
?>
|
278 |
<input name="htcc_options[list_hideon_cat]" value="<?php echo esc_attr( $htcc_list_cat_tohide['list_hideon_cat'] ) ?>" id="htcc_list_cat_tohide" type="text" >
|
279 |
-
<p class="description"> Category name's to hide, <br> can add multiple Categories separate with comma ( , ) - <a target="_blank" href="https://holithemes.com/
|
280 |
<?php
|
281 |
}
|
282 |
|
@@ -309,26 +309,26 @@ class HTCC_Admin {
|
|
309 |
if( isset( $input['fb_page_id'] ) )
|
310 |
$new_input['fb_page_id'] = sanitize_text_field( $input['fb_page_id'] );
|
311 |
|
312 |
-
if( isset( $input['
|
313 |
-
$new_input['
|
314 |
|
315 |
-
if( isset( $input['
|
316 |
-
$new_input['
|
317 |
|
318 |
-
if( isset( $input['
|
319 |
-
$new_input['
|
320 |
|
321 |
-
if( isset( $input['
|
322 |
-
$new_input['
|
323 |
|
324 |
-
if( isset( $input['
|
325 |
-
$new_input['
|
326 |
|
327 |
-
if( isset( $input['
|
328 |
-
$new_input['
|
329 |
|
330 |
-
if( isset( $input['
|
331 |
-
$new_input['
|
332 |
|
333 |
if( isset( $input['list_hideon_pages'] ) )
|
334 |
$new_input['list_hideon_pages'] = sanitize_text_field( $input['list_hideon_pages'] );
|
74 |
add_settings_field( 'htcc_fb_app_id', 'Facebook App ID', array( $this, 'htcc_fb_app_id_cb' ), 'htcc_options_settings', 'htcc_settings' );
|
75 |
add_settings_field( 'htcc_fb_page_id', 'Facebook Page ID', array( $this, 'htcc_fb_page_id_cb' ), 'htcc_options_settings', 'htcc_settings' );
|
76 |
|
77 |
+
add_settings_field( 'htcc_show_hide', 'Hide on', array( $this, 'htcc_show_hide_post_types_cb' ), 'htcc_options_settings', 'htcc_settings' );
|
78 |
|
79 |
+
add_settings_field( 'htcc_list_id_tohide', 'Post, Page Id\'s to Hide', array( $this, 'htcc_list_id_tohide_cb' ), 'htcc_options_settings', 'htcc_settings' );
|
80 |
add_settings_field( 'htcc_list_cat_tohide', 'Categorys to Hide', array( $this, 'htcc_list_cat_tohide_cb' ), 'htcc_options_settings', 'htcc_settings' );
|
81 |
}
|
82 |
|
83 |
// section heading
|
84 |
function htcc_settings_section_cb() {
|
85 |
+
echo '<h1>WP-Chatbot Settings</h1>';
|
86 |
}
|
87 |
|
88 |
public function htcc_enable_cb() {
|
103 |
?>
|
104 |
<input type="text" name="htcc_options[fb_app_id]" id="" value="<?php echo esc_attr( $htcc_fb_app_id['fb_app_id'] ) ?>">
|
105 |
|
106 |
+
<p class="description">Facebook App ID - <a target="_blank" href="https://holithemes.com/wp-chatbot/facebook-app-id/">moreinfo</a> </p>
|
107 |
<?php
|
108 |
}
|
109 |
|
115 |
<input type="text" name="htcc_options[fb_page_id]" id="" value="<?php echo esc_attr( $htcc_fb_page_id['fb_page_id'] ) ?>">
|
116 |
|
117 |
|
118 |
+
<p class="description">Facebook Page ID - <a target="_blank" href="https://holithemes.com/wp-chatbot/find-facebook-page-id/">moreinfo</a> </p>
|
119 |
<?php
|
120 |
}
|
121 |
|
125 |
$htcc_checkbox = get_option('htcc_options');
|
126 |
|
127 |
// Single Posts
|
128 |
+
if ( isset( $htcc_checkbox['hideon_posts'] ) ) {
|
129 |
?>
|
130 |
<p>
|
131 |
+
<input name="htcc_options[hideon_posts]" type="checkbox" value="1" <?php checked( $htcc_checkbox['hideon_posts'], 1 ); ?> id="filled-in-box1" />
|
132 |
+
<label for="filled-in-box1">Hide on - Posts</label>
|
133 |
</p>
|
134 |
<?php
|
135 |
} else {
|
136 |
?>
|
137 |
<p>
|
138 |
+
<input name="htcc_options[hideon_posts]" type="checkbox" value="1" id="filled-in-box1" />
|
139 |
+
<label for="filled-in-box1">Hide on - Posts</label>
|
140 |
</p>
|
141 |
<?php
|
142 |
}
|
143 |
|
144 |
|
145 |
// Page
|
146 |
+
if ( isset( $htcc_checkbox['hideon_page'] ) ) {
|
147 |
?>
|
148 |
<p>
|
149 |
+
<input name="htcc_options[hideon_page]" type="checkbox" value="1" <?php checked( $htcc_checkbox['hideon_page'], 1 ); ?> id="filled-in-box2" />
|
150 |
+
<label for="filled-in-box2">Hide on - Pages</label>
|
151 |
</p>
|
152 |
<?php
|
153 |
} else {
|
154 |
?>
|
155 |
<p>
|
156 |
+
<input name="htcc_options[hideon_page]" type="checkbox" value="1" id="filled-in-box2" />
|
157 |
+
<label for="filled-in-box2">Hide on - Pages</label>
|
158 |
</p>
|
159 |
<?php
|
160 |
}
|
161 |
|
162 |
|
163 |
// Home Page
|
164 |
+
if ( isset( $htcc_checkbox['hideon_homepage'] ) ) {
|
165 |
?>
|
166 |
<p>
|
167 |
+
<input name="htcc_options[hideon_homepage]" type="checkbox" value="1" <?php checked( $htcc_checkbox['hideon_homepage'], 1 ); ?> id="filled-in-box3" />
|
168 |
+
<label for="filled-in-box3">Hide on - Home Page</label>
|
169 |
</p>
|
170 |
<?php
|
171 |
} else {
|
172 |
?>
|
173 |
<p>
|
174 |
+
<input name="htcc_options[hideon_homepage]" type="checkbox" value="1" id="filled-in-box3" />
|
175 |
+
<label for="filled-in-box3">Hide on - Home Page</label>
|
176 |
</p>
|
177 |
<?php
|
178 |
}
|
182 |
A front page is also a home page, but home page is not a front page
|
183 |
if front page unchecked - it works on both homepage and fornt page
|
184 |
but if home page is unchecked - it works only on home page, not on front page */
|
185 |
+
if ( isset( $htcc_checkbox['hideon_frontpage'] ) ) {
|
186 |
?>
|
187 |
<p>
|
188 |
+
<input name="htcc_options[hideon_frontpage]" type="checkbox" value="1" <?php checked( $htcc_checkbox['hideon_frontpage'], 1 ); ?> id="filled-in-box4" />
|
189 |
+
<label for="filled-in-box4">Hide on - Front Page</label>
|
190 |
</p>
|
191 |
<?php
|
192 |
} else {
|
193 |
?>
|
194 |
<p>
|
195 |
+
<input name="htcc_options[hideon_frontpage]" type="checkbox" value="1" id="filled-in-box4" />
|
196 |
+
<label for="filled-in-box4">Hide on - Front Page</label>
|
197 |
</p>
|
198 |
<?php
|
199 |
}
|
201 |
|
202 |
|
203 |
// Category
|
204 |
+
if ( isset( $htcc_checkbox['hideon_category'] ) ) {
|
205 |
?>
|
206 |
<p>
|
207 |
+
<input name="htcc_options[hideon_category]" type="checkbox" value="1" <?php checked( $htcc_checkbox['hideon_category'], 1 ); ?> id="filled-in-box5" />
|
208 |
+
<label for="filled-in-box5">Hide on - Category</label>
|
209 |
</p>
|
210 |
<?php
|
211 |
} else {
|
212 |
?>
|
213 |
<p>
|
214 |
+
<input name="htcc_options[hideon_category]" type="checkbox" value="1" id="filled-in-box5" />
|
215 |
+
<label for="filled-in-box5">Hide on - Category</label>
|
216 |
</p>
|
217 |
<?php
|
218 |
}
|
220 |
|
221 |
|
222 |
// Archive
|
223 |
+
if ( isset( $htcc_checkbox['hideon_archive'] ) ) {
|
224 |
?>
|
225 |
<p>
|
226 |
+
<input name="htcc_options[hideon_archive]" type="checkbox" value="1" <?php checked( $htcc_checkbox['hideon_archive'], 1 ); ?> id="filled-in-box6" />
|
227 |
+
<label for="filled-in-box6">Hide on - Archive</label>
|
228 |
</p>
|
229 |
<?php
|
230 |
} else {
|
231 |
?>
|
232 |
<p>
|
233 |
+
<input name="htcc_options[hideon_archive]" type="checkbox" value="1" id="filled-in-box6" />
|
234 |
+
<label for="filled-in-box6">Hide on - Archive</label>
|
235 |
</p>
|
236 |
<?php
|
237 |
}
|
239 |
|
240 |
|
241 |
// 404 Page
|
242 |
+
if ( isset( $htcc_checkbox['hideon_404'] ) ) {
|
243 |
?>
|
244 |
<p>
|
245 |
+
<input name="htcc_options[hideon_404]" type="checkbox" value="1" <?php checked( $htcc_checkbox['hideon_404'], 1 ); ?> id="filled-in-box7" />
|
246 |
+
<label for="filled-in-box7">Hide on - 404 Page</label>
|
247 |
</p>
|
248 |
<?php
|
249 |
} else {
|
250 |
?>
|
251 |
<p>
|
252 |
+
<input name="htcc_options[hideon_404]" type="checkbox" value="1" id="filled-in-box7" />
|
253 |
+
<label for="filled-in-box7">Hide on - 404 Page</label>
|
254 |
</p>
|
255 |
<?php
|
256 |
}
|
257 |
?>
|
258 |
+
<p class="description"> check to Hide <br> Hide Messenger - based on type of the page <a target="_blank" href="https://holithemes.com/wp-chatbot/show-hide-messenger-based-on-type-of-the-page/">more info</a> </p>
|
259 |
|
260 |
|
261 |
<?php
|
267 |
$htcc_list_id_tohide = get_option('htcc_options');
|
268 |
?>
|
269 |
<input name="htcc_options[list_hideon_pages]" value="<?php echo esc_attr( $htcc_list_id_tohide['list_hideon_pages'] ) ?>" id="htcc_list_id_tohide" type="text">
|
270 |
+
<p class="description"> Add Post, Page, Media - ID's to hide, <br> can add multiple id's separate with comma ( , ) - <a target="_blank" href="https://holithemes.com/wp-chatbot/hide-messenger-based-on-post-id/">more info</a> </p>
|
271 |
<?php
|
272 |
}
|
273 |
|
276 |
$htcc_list_cat_tohide = get_option('htcc_options');
|
277 |
?>
|
278 |
<input name="htcc_options[list_hideon_cat]" value="<?php echo esc_attr( $htcc_list_cat_tohide['list_hideon_cat'] ) ?>" id="htcc_list_cat_tohide" type="text" >
|
279 |
+
<p class="description"> Category name's to hide, <br> can add multiple Categories separate with comma ( , ) - <a target="_blank" href="https://holithemes.com/wp-chatbot/hide-messenger-based-on-category/">more info</a> </p>
|
280 |
<?php
|
281 |
}
|
282 |
|
309 |
if( isset( $input['fb_page_id'] ) )
|
310 |
$new_input['fb_page_id'] = sanitize_text_field( $input['fb_page_id'] );
|
311 |
|
312 |
+
if( isset( $input['hideon_posts'] ) )
|
313 |
+
$new_input['hideon_posts'] = sanitize_text_field( $input['hideon_posts'] );
|
314 |
|
315 |
+
if( isset( $input['hideon_page'] ) )
|
316 |
+
$new_input['hideon_page'] = sanitize_text_field( $input['hideon_page'] );
|
317 |
|
318 |
+
if( isset( $input['hideon_homepage'] ) )
|
319 |
+
$new_input['hideon_homepage'] = sanitize_text_field( $input['hideon_homepage'] );
|
320 |
|
321 |
+
if( isset( $input['hideon_frontpage'] ) )
|
322 |
+
$new_input['hideon_frontpage'] = sanitize_text_field( $input['hideon_frontpage'] );
|
323 |
|
324 |
+
if( isset( $input['hideon_category'] ) )
|
325 |
+
$new_input['hideon_category'] = sanitize_text_field( $input['hideon_category'] );
|
326 |
|
327 |
+
if( isset( $input['hideon_archive'] ) )
|
328 |
+
$new_input['hideon_archive'] = sanitize_text_field( $input['hideon_archive'] );
|
329 |
|
330 |
+
if( isset( $input['hideon_404'] ) )
|
331 |
+
$new_input['hideon_404'] = sanitize_text_field( $input['hideon_404'] );
|
332 |
|
333 |
if( isset( $input['list_hideon_pages'] ) )
|
334 |
$new_input['list_hideon_pages'] = sanitize_text_field( $input['list_hideon_pages'] );
|
inc/class-htcc-chatbot.php
CHANGED
@@ -33,31 +33,31 @@ class HTCC_Chatbot {
|
|
33 |
|
34 |
|
35 |
|
36 |
-
if ( is_single() &&
|
37 |
return;
|
38 |
}
|
39 |
|
40 |
-
if ( is_page() &&
|
41 |
return;
|
42 |
}
|
43 |
|
44 |
-
if ( is_home() &&
|
45 |
return;
|
46 |
}
|
47 |
|
48 |
-
if ( is_front_page() &&
|
49 |
return;
|
50 |
}
|
51 |
|
52 |
-
if ( is_category() &&
|
53 |
return;
|
54 |
}
|
55 |
|
56 |
-
if ( is_archive() &&
|
57 |
return;
|
58 |
}
|
59 |
|
60 |
-
if ( is_404() &&
|
61 |
return;
|
62 |
}
|
63 |
|
33 |
|
34 |
|
35 |
|
36 |
+
if ( is_single() && isset( $htcc_options['hideon_posts'] ) ) {
|
37 |
return;
|
38 |
}
|
39 |
|
40 |
+
if ( is_page() && isset( $htcc_options['hideon_page'] ) ) {
|
41 |
return;
|
42 |
}
|
43 |
|
44 |
+
if ( is_home() && isset( $htcc_options['hideon_homepage'] ) ) {
|
45 |
return;
|
46 |
}
|
47 |
|
48 |
+
if ( is_front_page() && isset( $htcc_options['hideon_frontpage'] ) ) {
|
49 |
return;
|
50 |
}
|
51 |
|
52 |
+
if ( is_category() && isset( $htcc_options['hideon_category'] ) ) {
|
53 |
return;
|
54 |
}
|
55 |
|
56 |
+
if ( is_archive() && isset( $htcc_options['hideon_archive'] ) ) {
|
57 |
return;
|
58 |
}
|
59 |
|
60 |
+
if ( is_404() && isset( $htcc_options['hideon_404'] ) ) {
|
61 |
return;
|
62 |
}
|
63 |
|
inc/class-htcc-db.php
CHANGED
@@ -50,17 +50,18 @@ class HTCC_db {
|
|
50 |
'enable' => '1',
|
51 |
'fb_app_id' => '510187842699385',
|
52 |
'fb_page_id' => '135269407170658',
|
53 |
-
|
54 |
-
'showon_posts' => '1',
|
55 |
-
'showon_page' => '1',
|
56 |
-
'showon_homepage' => '1',
|
57 |
-
'showon_frontpage' => '1',
|
58 |
-
'showon_category' => '1',
|
59 |
-
'showon_archive' => '1',
|
60 |
-
'showon_404' => '1',
|
61 |
|
62 |
'list_hideon_pages' => '',
|
63 |
'list_hideon_cat' => '',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
);
|
65 |
|
66 |
|
50 |
'enable' => '1',
|
51 |
'fb_app_id' => '510187842699385',
|
52 |
'fb_page_id' => '135269407170658',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
'list_hideon_pages' => '',
|
55 |
'list_hideon_cat' => '',
|
56 |
+
|
57 |
+
// 'showon_posts' => '1',
|
58 |
+
// 'showon_page' => '1',
|
59 |
+
// 'showon_homepage' => '1',
|
60 |
+
// 'showon_frontpage' => '1',
|
61 |
+
// 'showon_category' => '1',
|
62 |
+
// 'showon_archive' => '1',
|
63 |
+
// 'showon_404' => '1',
|
64 |
+
|
65 |
);
|
66 |
|
67 |
|
readme.txt
CHANGED
@@ -2,34 +2,40 @@
|
|
2 |
Requires at least: 4.0.0
|
3 |
Tested up to: 4.9.1
|
4 |
Requires PHP: 5.6
|
5 |
-
Contributors: bhvreddy
|
6 |
Donate link: https://www.paypal.me/ugadi
|
7 |
Stable tag: trunk
|
8 |
-
Tags:
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
|
13 |
-
|
14 |
== Description ==
|
15 |
-
|
16 |
|
17 |
== Documentation ==
|
18 |
|
|
|
|
|
19 |
[Documentation, Demo](https://holithemes.com/wp-chatbot/)
|
20 |
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
= Requires =
|
24 |
Facebook Developer account
|
25 |
Facebook APP ID
|
26 |
Facebook Page ID
|
27 |
|
28 |
-
( if you already done
|
29 |
|
30 |
1. signup for Facebook Developer Account
|
31 |
-
1. Create an APP
|
32 |
-
1. Create
|
33 |
1. Whitelisted Domains - Facebook page -> 'settings' -> 'Messenger Platform' tab and at 'Whitelisted Domains' add domain names.
|
34 |
|
35 |
In plugin setting page
|
@@ -39,8 +45,6 @@ we create a bot which explain [settings](http://m.me/135269407170658)
|
|
39 |
|
40 |
the same can check in Messenger from [Demo website](https://holithemes.com/wp-chatbot/) located at bottom right.
|
41 |
|
42 |
-
This plugin build based on Facebook Messenger [customer chat](https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin)
|
43 |
-
|
44 |
and for creating automatic messages - use tools like Chatfuel or some other tools
|
45 |
|
46 |
|
@@ -70,6 +74,9 @@ and for creating automatic messages - use tools like Chatfuel or some other tool
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
73 |
= 1.1.0 =
|
74 |
* show / hide messenger based on page types
|
75 |
* Hide messenger based on post id, category name.
|
2 |
Requires at least: 4.0.0
|
3 |
Tested up to: 4.9.1
|
4 |
Requires PHP: 5.6
|
5 |
+
Contributors: bhvreddy, holithemes
|
6 |
Donate link: https://www.paypal.me/ugadi
|
7 |
Stable tag: trunk
|
8 |
+
Tags: messenger, customer chat plugin, facebook customer chat, facebook chat, chatbot, messenger chatbot, messenger customer chat, facebook live chat, live chat ,messenger live chat, holithemes
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
|
|
|
13 |
== Description ==
|
14 |
+
Add Messenger to your website. Chatbot or live chat to your Customers from your website using Facebook messenger.
|
15 |
|
16 |
== Documentation ==
|
17 |
|
18 |
+
Live chat to your customers or integrate chatbot to messenger and that bot's will message to your customers.
|
19 |
+
|
20 |
[Documentation, Demo](https://holithemes.com/wp-chatbot/)
|
21 |
|
22 |
+
This plugin is for integrate Facebook Messenger [Customer Chat plugin](https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin)
|
23 |
+
|
24 |
+
= Tools to build Chatbots for messenger =
|
25 |
+
Chatfuel
|
26 |
+
Manychat
|
27 |
+
|
28 |
|
29 |
= Requires =
|
30 |
Facebook Developer account
|
31 |
Facebook APP ID
|
32 |
Facebook Page ID
|
33 |
|
34 |
+
( if you already done some steps no need to do again )
|
35 |
|
36 |
1. signup for Facebook Developer Account
|
37 |
+
1. Create an APP in Facebook Developer Account
|
38 |
+
1. Create Facebook Page
|
39 |
1. Whitelisted Domains - Facebook page -> 'settings' -> 'Messenger Platform' tab and at 'Whitelisted Domains' add domain names.
|
40 |
|
41 |
In plugin setting page
|
45 |
|
46 |
the same can check in Messenger from [Demo website](https://holithemes.com/wp-chatbot/) located at bottom right.
|
47 |
|
|
|
|
|
48 |
and for creating automatic messages - use tools like Chatfuel or some other tools
|
49 |
|
50 |
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.1.1 =
|
78 |
+
* Hide messenger based on page type ( now - check to hide )
|
79 |
+
|
80 |
= 1.1.0 =
|
81 |
* show / hide messenger based on page types
|
82 |
* Hide messenger based on post id, category name.
|
wp-chatbot.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
Plugin Name: WP Chatbot
|
4 |
-
Description:
|
5 |
-
Version: 1.1.
|
6 |
Author: bhvreddy
|
7 |
License: GPL2
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -12,7 +12,7 @@ Text Domain: htcc_text
|
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
|
15 |
-
define( 'HTCC_VERSION', '1.1.
|
16 |
define( 'HTCC_WP_MIN_VERSION', '3.1.0' );
|
17 |
define( 'HTCC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
18 |
define( 'HTCC_PLUGIN_FILE', __FILE__ );
|
1 |
<?php
|
2 |
/*
|
3 |
+
Plugin Name: WP Chatbot for facebook Messenger
|
4 |
+
Description: Add Messenger to your website, Chatbot or live Chat using Facebook Messenger
|
5 |
+
Version: 1.1.1
|
6 |
Author: bhvreddy
|
7 |
License: GPL2
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
|
15 |
+
define( 'HTCC_VERSION', '1.1.1' );
|
16 |
define( 'HTCC_WP_MIN_VERSION', '3.1.0' );
|
17 |
define( 'HTCC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
18 |
define( 'HTCC_PLUGIN_FILE', __FILE__ );
|