PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.1.9
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.1.9
3.4.3 3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 All 196 releases
← All changes | includes/class-convertkit-settings.php +0 -105 3.3.83.1.9 View file →
@@ -424,21 +424,8 @@
424 424
425 425 }
426 426
427 427 /**
428 - * Returns the active spam protection provider Plugin setting.
429 - *
430 - * @since 3.3.7
431 - *
432 - * @return string none|recaptcha|turnstile
433 - */
434 - public function spam_protection_provider() {
435 -
436 - return $this->settings['spam_protection_provider'];
437 -
438 - }
439 -
440 - /**
441 428 * Returns the reCAPTCHA Site Key Plugin setting.
442 429 *
443 430 * @since 3.0.0
444 431 *
@@ -516,74 +503,8 @@
516 503
517 504 }
518 505
519 506 /**
520 - * Returns the Cloudflare Turnstile Site Key Plugin setting.
521 - *
522 - * @since 3.3.7
523 - *
524 - * @return string
525 - */
526 - public function cloudflare_turnstile_site_key() {
527 -
528 - return $this->settings['cloudflare_turnstile_site_key'];
529 -
530 - }
531 -
532 - /**
533 - * Returns whether the Cloudflare Turnstile Site Key has been set in the Plugin settings.
534 - *
535 - * @since 3.3.7
536 - *
537 - * @return bool
538 - */
539 - public function has_cloudflare_turnstile_site_key() {
540 -
541 - return ! empty( $this->cloudflare_turnstile_site_key() );
542 -
543 - }
544 -
545 - /**
546 - * Returns the Cloudflare Turnstile Secret Key Plugin setting.
547 - *
548 - * @since 3.3.7
549 - *
550 - * @return string
551 - */
552 - public function cloudflare_turnstile_secret_key() {
553 -
554 - return $this->settings['cloudflare_turnstile_secret_key'];
555 -
556 - }
557 -
558 - /**
559 - * Returns whether the Cloudflare Turnstile Secret Key has been set in the Plugin settings.
560 - *
561 - * @since 3.3.7
562 - *
563 - * @return bool
564 - */
565 - public function has_cloudflare_turnstile_secret_key() {
566 -
567 - return ! empty( $this->cloudflare_turnstile_secret_key() );
568 -
569 - }
570 -
571 - /**
572 - * Returns whether the Cloudflare Turnstile Site Key and Secret Key are defined
573 - * in the Plugin settings.
574 - *
575 - * @since 3.3.7
576 - *
577 - * @return bool
578 - */
579 - public function has_cloudflare_turnstile_site_and_secret_keys() {
580 -
581 - return $this->has_cloudflare_turnstile_site_key() && $this->has_cloudflare_turnstile_secret_key();
582 -
583 - }
584 -
585 - /**
586 507 * Returns whether debugging is enabled in the Plugin settings.
587 508 *
588 509 * @since 1.9.6
589 510 *
@@ -621,21 +542,8 @@
621 542
622 543 }
623 544
624 545 /**
625 - * Returns whether the Add New Landing Page / Member Content button is disabled in the Plugin settings.
626 - *
627 - * @since 3.2.0
628 - *
629 - * @return bool
630 - */
631 - public function add_new_button_disabled() {
632 -
633 - return ( $this->settings['no_add_new_button'] === 'on' ? true : false );
634 -
635 - }
636 -
637 - /**
638 546 * Returns whether usage tracking is enabled in the Plugin settings.
639 547 *
640 548 * @since 3.0.4
641 549 *
@@ -671,25 +579,17 @@
671 579 'non_inline_form' => array(), // array.
672 580 'non_inline_form_honor_none_setting' => '', // blank|on.
673 581 'non_inline_form_limit_per_session' => '', // blank|on.
674 582
675 - // Spam Protection.
676 - 'spam_protection_provider' => 'recaptcha', // recaptcha|turnstile.
677 -
678 583 // reCAPTCHA.
679 584 'recaptcha_site_key' => '', // string.
680 585 'recaptcha_secret_key' => '', // string.
681 586 'recaptcha_minimum_score' => 0.5, // float.
682 587
683 - // Cloudflare Turnstile.
684 - 'cloudflare_turnstile_site_key' => '', // string.
685 - 'cloudflare_turnstile_secret_key' => '', // string.
686 -
687 588 // Advanced.
688 589 'debug' => '', // blank|on.
689 590 'no_scripts' => '', // blank|on.
690 591 'no_css' => '', // blank|on.
691 - 'no_add_new_button' => '', // blank|on.
692 592 'usage_tracking' => '', // blank|on.
693 593 );
694 594
695 595 // Add Post Type Default Forms.
@@ -752,16 +652,11 @@
752 652 public function delete_credentials() {
753 653
754 654 $this->save(
755 655 array(
756 - // OAuth.
757 656 'access_token' => '',
758 657 'refresh_token' => '',
759 658 'token_expires' => '',
760 -
761 - // API Key.
762 - 'api_key' => '',
763 - 'api_secret' => '',
764 659 )
765 660 );
766 661
767 662 // Clear any existing scheduled WordPress Cron event.