File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ class CleantalkAntispam
1818 * @var string Access key for CleanTalk API
1919 */
2020 private $ access_key ;
21+ /**
22+ * @var string Is bot detector included
23+ */
24+ private $ event_token_enabled ;
2125 /**
2226 * @var string Event token for CleanTalk API
2327 */
@@ -178,6 +182,9 @@ private function prepareCleanTalkRequestData()
178182 )
179183 ),
180184 );
185+ if ( isset ($ this ->event_token_enabled ) ) {
186+ $ data ['event_token_enabled ' ] = $ this ->event_token_enabled ;
187+ }
181188 return @json_encode ($ data );
182189 }
183190
@@ -340,6 +347,19 @@ public function setDoBlockNoJSVisitor()
340347 return $ this ;
341348 }
342349
350+ /**
351+ * Set the event token.
352+ *
353+ * @param string|null $event_token Event token
354+ * @return $this
355+ */
356+ public function setEventTokenEnabled ($ event_token_enabled = null )
357+ {
358+ $ this ->fluidCallStack (__FUNCTION__ );
359+ $ this ->event_token_enabled = $ event_token_enabled ;
360+ return $ this ;
361+ }
362+
343363 /**
344364 * Set the event token.
345365 *
You can’t perform that action at this time.
0 commit comments