Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions cleantalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use Cleantalk\ApbctWP\Firewall\SFW;
use Cleantalk\ApbctWP\Firewall\SFWUpdateHelper;
use Cleantalk\ApbctWP\Helper;
use Cleantalk\ApbctWP\Promotions\GF2DBPromotion;
use Cleantalk\ApbctWP\RemoteCalls;
use Cleantalk\ApbctWP\RequestParameters\RequestParameters;
use Cleantalk\ApbctWP\RequestParameters\SubmitTimeHandler;
Expand Down Expand Up @@ -273,10 +272,6 @@ function apbct_register_my_rest_routes()
add_action('init', function () {
global $apbct;

//promotions
$promotion_gf2db = new GF2DBPromotion();
$promotion_gf2db->init();

// Self cron
$ct_cron = Cron::getInstance();
$tasks_to_run = $ct_cron->checkTasks(); // Check for current tasks. Drop tasks inner counters.
Expand Down
10 changes: 0 additions & 10 deletions inc/cleantalk-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Cleantalk\ApbctWP\Escape;
use Cleantalk\ApbctWP\Helper;
use Cleantalk\ApbctWP\LinkConstructor;
use Cleantalk\ApbctWP\Promotions\GF2DBPromotion;
use Cleantalk\ApbctWP\Validate;
use Cleantalk\ApbctWP\Variables\Post;
use Cleantalk\ApbctWP\Cron;
Expand Down Expand Up @@ -132,8 +131,6 @@ function apbct_settings__set_fields()
? '<br>' . __(' - status of SpamFireWall database updating process', 'cleantalk-spam-protect')
: '';

$promotion_gf2db = new GF2DBPromotion();

$fields = array(

'main' => array(
Expand Down Expand Up @@ -263,13 +260,6 @@ function apbct_settings__set_fields()
'parent' => 'forms__contact_forms_test',
'display' => apbct_is_plugin_active('gravityforms/gravityforms.php'),
),
'forms__gravity_promotion_gf2db' => array(
'title' => $promotion_gf2db->getTitleForSettings(),
'description' => $promotion_gf2db->getDescriptionForSettings(),
'class' => 'apbct_settings-field_wrapper--sub',
'parent' => 'forms__contact_forms_test',
'display' => $promotion_gf2db->couldPerformActions(),
),
'forms__general_contact_forms_test' => array(
'title' => __('Custom contact forms', 'cleantalk-spam-protect'),
'description' => __(
Expand Down
101 changes: 0 additions & 101 deletions lib/Cleantalk/ApbctWP/Promotions/GF2DBPromotion.php

This file was deleted.

54 changes: 0 additions & 54 deletions lib/Cleantalk/ApbctWP/Promotions/Promotion.php

This file was deleted.

1 change: 0 additions & 1 deletion lib/Cleantalk/ApbctWP/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class State extends \Cleantalk\Common\State
'forms__contact_forms_test' => 1,
'forms__flamingo_save_spam' => 1,
'forms__gravityforms_save_spam' => 1,
'forms__gravity_promotion_gf2db' => 1,
'forms__general_contact_forms_test' => 1, // Anti-Spam test for unsupported and untested contact forms
'forms__wc_checkout_test' => 1, // WooCommerce checkout default test
'forms__wc_register_from_order' => 1, // Woocommerce registration during checkout
Expand Down
112 changes: 0 additions & 112 deletions tests/ApbctWP/Promotions/GF2DBPromotionTest.php

This file was deleted.

Loading