Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/convertkit/admin/class-convertkit-admin-tinymce.php
+++ b/convertkit/admin/class-convertkit-admin-tinymce.php
@@ -25,7 +25,8 @@
// Add filters to register QuickTag Plugins.
add_action( 'admin_enqueue_scripts', array( $this, 'register_quicktags' ) ); // WordPress Admin.
- add_action( 'wp_enqueue_scripts', array( $this, 'register_quicktags' ) ); // Frontend Editors.
+ add_action( 'wp_enqueue_scripts', array( $this, 'maybe_register_quicktags_frontend' ) ); // Frontend Page Builders.
+ add_action( 'wp_enqueue_editor', array( $this, 'maybe_register_quicktags_frontend' ) ); // Frontend Editors.
// Add filters to register TinyMCE Plugins.
// Low priority ensures this works with Frontend Page Builders.
@@ -128,6 +129,38 @@
}
+ /**
+ * Registers QuickTags JS for the TinyMCE Text (non-Visual) Editor on the frontend site when a
+ * Page Builder is used or an editor is output, so assets aren't loaded on every frontend page.
+ *
+ * @since 3.5.1
+ */
+ public function maybe_register_quicktags_frontend() {
+
+ // Bail if in the WordPress Admin, as admin_enqueue_scripts registers QuickTags.
+ if ( is_admin() ) {
+ return;
+ }
+
+ // Bail if the user can't edit Posts.
+ if ( ! current_user_can( 'edit_posts' ) ) {
+ return;
+ }
+
+ // Bail if this isn't a frontend Page Builder, and no editor is being output.
+ if ( ! doing_action( 'wp_enqueue_editor' ) && ! WP_ConvertKit()->is_admin_or_frontend_editor() ) {
+ return;
+ }
+
+ // Bail if QuickTags are already registered.
+ if ( wp_script_is( 'convertkit-admin-quicktags' ) ) {
+ return;
+ }
+
+ $this->register_quicktags();
+
+ }
+
/**
* Registers QuickTags JS for the TinyMCE Text (non-Visual) Editor
*
--- a/convertkit/includes/class-convertkit-output-restrict-content.php
+++ b/convertkit/includes/class-convertkit-output-restrict-content.php
@@ -133,6 +133,9 @@
add_action( 'wp', array( $this, 'maybe_run_subscriber_logout' ), 3 );
add_action( 'wp', array( $this, 'maybe_run_subscriber_verification' ), 4 );
add_action( 'wp', array( $this, 'register_content_filter' ), 5 );
+ add_action( 'admin_init', array( $this, 'register_ajax_content_filter' ) );
+ add_action( 'template_redirect', array( $this, 'maybe_restrict_attachment' ), 1 );
+ add_action( 'pre_get_posts', array( $this, 'maybe_exclude_restricted_search_results' ) );
add_filter( 'get_previous_post_where', array( $this, 'maybe_change_previous_post_where_clause' ), 10, 5 );
add_filter( 'get_next_post_where', array( $this, 'maybe_change_next_post_where_clause' ), 10, 5 );
add_filter( 'get_previous_post_sort', array( $this, 'maybe_change_previous_next_post_order_by_clause' ), 10, 3 );
@@ -774,6 +777,23 @@
}
/**
+ * Registers the content filter for AJAX requests, as the `wp` action doesn't run in them,
+ * so content output by Themes and Plugins using AJAX e.g. "load more" buttons is restricted.
+ *
+ * @since 3.5.1
+ */
+ public function register_ajax_content_filter() {
+
+ // Bail if this isn't an AJAX request.
+ if ( ! wp_doing_ajax() ) {
+ return;
+ }
+
+ add_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );
+
+ }
+
+ /**
* Registers filters to restrict content in REST API responses for Post Types
* supporting Member Content.
*
@@ -785,10 +805,12 @@
add_filter( 'rest_prepare_' . $post_type, array( $this, 'maybe_restrict_rest_content' ), 10, 2 );
}
+ add_filter( 'rest_prepare_attachment', array( $this, 'maybe_restrict_rest_attachment' ), 10, 2 );
+
}
/**
- * Replaces the rendered content in a REST API response with the content preview,
+ * Replaces the rendered content and excerpt in a REST API response with the content preview,
* if the Post is restricted and the visitor cannot view it.
*
* @since 3.4.8
@@ -799,8 +821,8 @@
*/
public function maybe_restrict_rest_content( $response, $post ) {
- // Bail if the response doesn't include the rendered content e.g. the _fields parameter was used.
- if ( ! isset( $response->data['content']['rendered'] ) ) {
+ // Bail if the response doesn't include the rendered content or excerpt e.g. the _fields parameter was used.
+ if ( ! isset( $response->data['content']['rendered'] ) && ! isset( $response->data['excerpt']['rendered'] ) ) {
return $response;
}
@@ -814,6 +836,9 @@
return $response;
}
+ // Use the rendered content if included in the response, otherwise render the Post's content.
+ $content = isset( $response->data['content']['rendered'] ) ? $response->data['content']['rendered'] : apply_filters( 'the_content', $post->post_content );
+
/**
* Define the output for the content preview when the visitor is not
* an authenticated subscriber.
@@ -823,13 +848,197 @@
* @param string $content_preview Content preview.
* @param int $post_id Post ID.
*/
- $response->data['content']['rendered'] = apply_filters( 'convertkit_output_restrict_content_content_preview', $this->get_content_preview( $response->data['content']['rendered'] ), $post->ID );
+ $content_preview = apply_filters( 'convertkit_output_restrict_content_content_preview', $this->get_content_preview( $content ), $post->ID );
+
+ // Replace the rendered content with the content preview.
+ if ( isset( $response->data['content']['rendered'] ) ) {
+ $response->data['content']['rendered'] = $content_preview;
+ }
+
+ // Replace the generated excerpt with one built from the content preview, as WordPress builds it from the full content.
+ if ( isset( $response->data['excerpt']['rendered'] ) && ! has_excerpt( $post ) ) {
+ $response->data['excerpt']['rendered'] = wpautop( $this->get_excerpt_from_content_preview( $content_preview ) );
+ }
return $response;
}
/**
+ * Removes an attachment's details from a REST API response, if it's attached to a Post
+ * that is restricted and the visitor cannot view it, so its file URL isn't disclosed.
+ *
+ * @since 3.5.1
+ *
+ * @param WP_REST_Response $response REST API Response.
+ * @param WP_Post $post Attachment.
+ * @return WP_REST_Response
+ */
+ public function maybe_restrict_rest_attachment( $response, $post ) {
+
+ // Bail if the visitor can view the attachment.
+ if ( $this->can_view_attachment( $post ) ) {
+ return $response;
+ }
+
+ // Only return the attachment's ID.
+ return rest_ensure_response( array( 'id' => $post->ID ) );
+
+ }
+
+ /**
+ * Displays a 404 for an attachment's page, if it's attached to a Post that is restricted
+ * and the visitor cannot view it, so its file URL isn't disclosed.
+ *
+ * Runs before WordPress redirects attachment pages to the file, when attachment pages are disabled.
+ *
+ * @since 3.5.1
+ */
+ public function maybe_restrict_attachment() {
+
+ global $wp_query;
+
+ // Bail if this isn't an attachment's page.
+ if ( ! is_attachment() ) {
+ return;
+ }
+
+ // Bail if the visitor can view the attachment.
+ if ( $this->can_view_attachment( get_post( get_queried_object_id() ) ) ) {
+ return;
+ }
+
+ // Display a 404.
+ $wp_query->set_404();
+ status_header( 404 );
+ nocache_headers();
+
+ }
+
+ /**
+ * Excludes Posts from search results that the visitor cannot view, if the search terms
+ * only match the Post's restricted content, so searches can't be used to discover it.
+ *
+ * @since 3.5.1
+ *
+ * @param WP_Query $query Query.
+ */
+ public function maybe_exclude_restricted_search_results( $query ) {
+
+ // Bail if this isn't a search, or is the query below finding Posts matching the search.
+ if ( ! $query->is_search() || $query->get( 'convertkit_restrict_content_search' ) ) {
+ return;
+ }
+
+ // Initialize classes, if this query runs before the init hook.
+ if ( ! $this->restrict_content_settings ) {
+ $this->initialize_classes();
+ }
+
+ // Find Posts matching the search that have the Member Content setting defined.
+ $post_ids = get_posts(
+ array(
+ 'convertkit_restrict_content_search' => true,
+ 's' => $query->get( 's' ),
+ 'post_type' => $query->get( 'post_type' ) ? $query->get( 'post_type' ) : 'any',
+ 'post_status' => 'publish',
+ 'fields' => 'ids',
+ 'posts_per_page' => -1,
+ 'meta_query' => array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query
+ array(
+ 'key' => '_wp_convertkit_post_meta',
+ 'value' => 's:16:"restrict_content";s:0:""',
+ 'compare' => 'NOT LIKE',
+ ),
+ ),
+ )
+ );
+
+ // Load Post meta in a single query, as each Post's Member Content setting is checked below.
+ update_meta_cache( 'post', $post_ids );
+
+ $excluded_post_ids = array();
+ foreach ( $post_ids as $post_id ) {
+ // Skip if the user can edit or the visitor can view the Post.
+ if ( current_user_can( 'edit_post', $post_id ) || $this->can_view_post( $post_id ) ) {
+ continue;
+ }
+
+ // Skip if all search terms match the content the visitor can see.
+ if ( $this->search_terms_match_visible_content( get_post( $post_id ), $query->get( 's' ) ) ) {
+ continue;
+ }
+
+ $excluded_post_ids[] = $post_id;
+ }
+
+ // Bail if no Posts need to be excluded.
+ if ( empty( $excluded_post_ids ) ) {
+ return;
+ }
+
+ $query->set( 'post__not_in', array_merge( (array) $query->get( 'post__not_in' ), $excluded_post_ids ) );
+
+ }
+
+ /**
+ * Determines if all search terms match the content of a restricted Post that the visitor can see:
+ * its title, excerpt and content preview.
+ *
+ * @since 3.5.1
+ *
+ * @param WP_Post $post Post.
+ * @param string $search Search string.
+ * @return bool
+ */
+ private function search_terms_match_visible_content( $post, $search ) {
+
+ // Use the content before the Read More tag as the preview, or the start of the content if no tag exists, as
+ // WordPress does when generating an excerpt.
+ $content_breakdown = get_extended( $post->post_content );
+ $preview = ! empty( $content_breakdown['extended'] ) ? $content_breakdown['main'] : wp_trim_words( strip_shortcodes( $post->post_content ), apply_filters( 'excerpt_length', 55 ), '' );
+
+ // Build the content the visitor can see.
+ $visible_content = wp_strip_all_tags( $post->post_title . ' ' . $post->post_excerpt . ' ' . $preview );
+
+ // Split the search into terms, removing quotes, as WordPress does.
+ preg_match_all( '/".*?("|$)|((?<=[t ",+])|^)[^t ",+]+/', $search, $matches );
+ foreach ( $matches[0] as $search_term ) {
+ if ( stripos( $visible_content, trim( $search_term, ""' nr" ) ) === false ) {
+ return false;
+ }
+ }
+
+ return true;
+
+ }
+
+ /**
+ * Determines if the visitor can view the given attachment, based on the Member Content
+ * setting of the Post it's attached to.
+ *
+ * @since 3.5.1
+ *
+ * @param WP_Post|null $attachment Attachment.
+ * @return bool
+ */
+ private function can_view_attachment( $attachment ) {
+
+ // Bail if the attachment doesn't exist or isn't attached to a Post.
+ if ( ! $attachment || ! $attachment->post_parent ) {
+ return true;
+ }
+
+ // Bail if the user can edit the Post the attachment is attached to.
+ if ( current_user_can( 'edit_post', $attachment->post_parent ) ) {
+ return true;
+ }
+
+ return $this->can_view_post( $attachment->post_parent );
+
+ }
+
+ /**
* Replaces a Post's content in RSS and Atom feeds and archives with the content
* preview, if the Post is restricted and the visitor cannot view it.
*
@@ -882,9 +1091,23 @@
return $excerpt;
}
- // Build the excerpt from the content preview, using the same length and more text as WordPress.
+ // Build the excerpt from the content preview.
+ return $this->get_excerpt_from_content_preview( $this->maybe_restrict_content_preview( apply_filters( 'the_content', get_the_content() ) ) );
+
+ }
+
+ /**
+ * Builds an excerpt from the given content preview, using the same length and more text as WordPress.
+ *
+ * @since 3.5.1
+ *
+ * @param string $content_preview Content preview.
+ * @return string
+ */
+ private function get_excerpt_from_content_preview( $content_preview ) {
+
return wp_trim_words(
- $this->maybe_restrict_content_preview( apply_filters( 'the_content', get_the_content() ) ),
+ $content_preview,
apply_filters( 'excerpt_length', 55 ),
apply_filters( 'excerpt_more', ' […]' )
);
@@ -964,12 +1187,6 @@
*/
public function can_view_post( $post_id ) {
- // If the Plugin Access Token has not been configured, we can't determine the validity of this subscriber ID
- // or which resource(s) they have access to.
- if ( ! $this->settings->has_access_and_refresh_token() ) {
- return true;
- }
-
// Bail if the Restrict Content setting is not enabled on this Post.
$this->post_id = $post_id;
$this->post_settings = new ConvertKit_Post( $this->post_id );
@@ -1006,6 +1223,12 @@
return true;
}
+ // The visitor cannot view the content if the Plugin isn't connected to Kit e.g. the access token was revoked,
+ // as we can't determine whether they have access.
+ if ( ! $this->settings->has_access_and_refresh_token() ) {
+ return false;
+ }
+
// Bail if the resource no longer exists in Kit e.g. a Tag or Product has been deleted,
// but the Post still references it under the 'Member Content' setting.
if ( ! $this->resource_exists() ) {
@@ -1257,12 +1480,6 @@
return false;
}
- // If the Plugin Access Token has not been configured, we can't determine the validity of this subscriber ID
- // or which resource(s) they have access to.
- if ( ! $this->settings->has_access_and_refresh_token() ) {
- return false;
- }
-
// Get Post ID.
$this->post_id = get_the_ID();
@@ -1396,51 +1613,31 @@
private function resource_exists() {
switch ( $this->resource_type ) {
-
case 'product':
- // Get Product.
- $products = new ConvertKit_Resource_Products( 'restrict_content' );
- $product = $products->get_by_id( $this->resource_id );
-
- // If the Product does not exist, return false.
- if ( ! $product ) {
- return false;
- }
-
- // Product exists in ConvertKit.
- return true;
+ $resources = new ConvertKit_Resource_Products( 'restrict_content' );
+ break;
case 'form':
- // Get Form.
- $forms = new ConvertKit_Resource_Forms( 'restrict_content' );
- $form = $forms->get_by_id( $this->resource_id );
-
- // If the Form does not exist, return false.
- if ( ! $form ) {
- return false;
- }
-
- // Form exists in ConvertKit.
- return true;
+ $resources = new ConvertKit_Resource_Forms( 'restrict_content' );
+ break;
case 'tag':
- // Get Tag.
- $tags = new ConvertKit_Resource_Tags( 'restrict_content' );
- $tag = $tags->get_by_id( $this->resource_id );
-
- // If the Tag does not exist, return false.
- if ( ! $tag ) {
- return false;
- }
-
- // Tag exists in ConvertKit.
- return true;
+ $resources = new ConvertKit_Resource_Tags( 'restrict_content' );
+ break;
default:
return false;
+ }
+ // Assume the resource exists if resources couldn't be fetched from Kit e.g. an API error,
+ // so content remains restricted instead of being displayed to everyone.
+ if ( ! is_array( $resources->resources ) ) {
+ return true;
}
+ // Return whether the resource exists in Kit.
+ return (bool) $resources->get_by_id( $this->resource_id );
+
}
/**
@@ -1728,13 +1925,15 @@
// Remove 'the_content' filter, as if the Post contains no defined excerpt, WordPress
// will invoke the Post's content to build an excerpt, resulting in an infinite loop.
- remove_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );
+ $filter_removed = remove_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );
// Generate the Post's excerpt.
$excerpt = get_the_excerpt( $post_id );
- // Restore filters so other functions and Plugins aren't affected.
- add_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );
+ // Restore the filter if it was registered e.g. not in a REST API request, so other functions and Plugins aren't affected.
+ if ( $filter_removed ) {
+ add_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );
+ }
// Return the excerpt.
return wpautop( $excerpt );
@@ -1776,9 +1975,7 @@
$text = $this->restrict_content_settings->get_by_key( 'subscribe_text' );
// Output product restricted message and email form.
- // Get Product.
$products = new ConvertKit_Resource_Products( 'restrict_content' );
- $product = $products->get_by_id( $resource_id );
// Get commerce.js URL and enqueue.
$url = $products->get_commerce_js_url();
@@ -1792,15 +1989,25 @@
$this->output_login_modal( $post_id, $resource_id, $resource_type );
}
+ // Get the Product button, if Products could be fetched from Kit.
+ $button = '';
+ if ( $products->exist() ) {
+ $button = $products->get_html(
+ $resource_id,
+ $this->restrict_content_settings->get_by_key( 'subscribe_button_label' ),
+ array(
+ 'css_classes' => array( 'wp-block-button__link', 'wp-element-button' ),
+ )
+ );
+ }
+
+ // Don't output the Product button if it couldn't be generated e.g. the Product doesn't exist.
+ if ( is_wp_error( $button ) ) {
+ $button = '';
+ }
+
// Output.
ob_start();
- $button = $products->get_html(
- $resource_id,
- $this->restrict_content_settings->get_by_key( 'subscribe_button_label' ),
- array(
- 'css_classes' => array( 'wp-block-button__link', 'wp-element-button' ),
- )
- );
include CONVERTKIT_PLUGIN_PATH . '/views/frontend/restrict-content/product.php';
return trim( ob_get_clean() );
@@ -1809,6 +2016,11 @@
$forms = new ConvertKit_Resource_Forms( 'restrict_content' );
$form = $forms->get_html( $resource_id, $post_id );
+ // Don't output the Form if it couldn't be generated e.g. Forms couldn't be fetched from Kit.
+ if ( is_wp_error( $form ) ) {
+ $form = '';
+ }
+
// If scripts are enabled, output the email login form in a modal, which will be displayed
// when the 'log in' link is clicked.
if ( ! $this->settings->scripts_disabled() ) {
--- a/convertkit/includes/integrations/class-convertkit-avada.php
+++ b/convertkit/includes/integrations/class-convertkit-avada.php
@@ -0,0 +1,96 @@
+<?php
+/**
+ * ConvertKit Avada Theme Integration.
+ *
+ * @package ConvertKit
+ * @author ConvertKit
+ */
+
+/**
+ * Adds compatibility with the Avada theme by not restricting content
+ * in Avada Layout Sections that are not the Post's content, such as
+ * the Header, Page Title Bar and Footer.
+ *
+ * @since 3.5.1
+ */
+class ConvertKit_Avada {
+
+ /**
+ * Avada Layout Sections that should not have Restrict Content applied.
+ *
+ * @since 3.5.1
+ *
+ * @var array
+ */
+ private $sections = array(
+ 'header',
+ 'page_title_bar',
+ 'footer',
+ );
+
+ /**
+ * Whether the Restrict Content filter was removed whilst rendering an Avada Layout Section.
+ *
+ * @since 3.5.1
+ *
+ * @var bool
+ */
+ private $restrict_content_filter_removed = false;
+
+ /**
+ * Constructor.
+ *
+ * @since 3.5.1
+ */
+ public function __construct() {
+
+ // Avada fires these actions immediately before and after running a Layout Section through `the_content`.
+ add_action( 'awb_remove_third_party_the_content_changes', array( $this, 'maybe_remove_restrict_content_filter' ) );
+ add_action( 'awb_readd_third_party_the_content_changes', array( $this, 'maybe_readd_restrict_content_filter' ) );
+
+ }
+
+ /**
+ * Removes the Restrict Content filter if Avada is rendering a Header, Page Title Bar or Footer Layout Section.
+ *
+ * @since 3.5.1
+ */
+ public function maybe_remove_restrict_content_filter() {
+
+ // Bail if Avada Builder is not active.
+ if ( ! function_exists( 'Fusion_Template_Builder' ) ) {
+ return;
+ }
+
+ // Bail if the Layout Section being rendered might be the Post's content.
+ if ( ! in_array( Fusion_Template_Builder()->get_current_override_name(), $this->sections, true ) ) { // @phpstan-ignore-line
+ return;
+ }
+
+ // Remove the Restrict Content filter, tracking if it was registered so it's only re-added if it was removed.
+ if ( remove_filter( 'the_content', array( WP_ConvertKit()->get_class( 'output_restrict_content' ), 'maybe_restrict_content' ) ) ) {
+ $this->restrict_content_filter_removed = true;
+ }
+
+ }
+
+ /**
+ * Re-adds the Restrict Content filter if it was removed by maybe_remove_restrict_content_filter().
+ *
+ * @since 3.5.1
+ */
+ public function maybe_readd_restrict_content_filter() {
+
+ // Bail if the Restrict Content filter wasn't removed.
+ if ( ! $this->restrict_content_filter_removed ) {
+ return;
+ }
+
+ add_filter( 'the_content', array( WP_ConvertKit()->get_class( 'output_restrict_content' ), 'maybe_restrict_content' ) );
+ $this->restrict_content_filter_removed = false;
+
+ }
+
+}
+
+new ConvertKit_Avada();
--- a/convertkit/vendor/composer/installed.php
+++ b/convertkit/vendor/composer/installed.php
@@ -1,9 +1,9 @@
<?php return array(
'root' => array(
'name' => 'convertkit/convertkit-wordpress',
- 'pretty_version' => '3.5.0',
- 'version' => '3.5.0.0',
- 'reference' => '60c278346a530dfda3e15b1466a84302e4977e79',
+ 'pretty_version' => '3.5.1',
+ 'version' => '3.5.1.0',
+ 'reference' => '1bb32fb7ba3a6d9a4fe674bcb0af183c1dc8099e',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -11,9 +11,9 @@
),
'versions' => array(
'convertkit/convertkit-wordpress' => array(
- 'pretty_version' => '3.5.0',
- 'version' => '3.5.0.0',
- 'reference' => '60c278346a530dfda3e15b1466a84302e4977e79',
+ 'pretty_version' => '3.5.1',
+ 'version' => '3.5.1.0',
+ 'reference' => '1bb32fb7ba3a6d9a4fe674bcb0af183c1dc8099e',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
--- a/convertkit/wp-convertkit.php
+++ b/convertkit/wp-convertkit.php
@@ -9,7 +9,7 @@
* Plugin Name: Kit (formerly ConvertKit)
* Plugin URI: https://kit.com/
* Description: Display Kit (formerly ConvertKit) email subscription forms, landing pages, products, broadcasts and more.
- * Version: 3.5.0
+ * Version: 3.5.1
* Author: Kit
* Author URI: https://kit.com/
* Text Domain: convertkit
@@ -27,7 +27,7 @@
define( 'CONVERTKIT_PLUGIN_FILE', plugin_basename( __FILE__ ) );
define( 'CONVERTKIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'CONVERTKIT_PLUGIN_PATH', __DIR__ );
-define( 'CONVERTKIT_PLUGIN_VERSION', '3.5.0' );
+define( 'CONVERTKIT_PLUGIN_VERSION', '3.5.1' );
define( 'CONVERTKIT_OAUTH_CLIENT_ID', 'HXZlOCj-K5r0ufuWCtyoyo3f688VmMAYSsKg1eGvw0Y' );
define( 'CONVERTKIT_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' );
define( 'CONVERTKIT_NONCE_ACTION_OAUTH_CONNECT', 'convertkit-oauth-connect' );
@@ -109,6 +109,9 @@
require_once CONVERTKIT_PLUGIN_PATH . '/includes/cron-functions.php';
require_once CONVERTKIT_PLUGIN_PATH . '/includes/functions.php';
+// Avada Integration.
+require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/class-convertkit-avada.php';
+
// Contact Form 7 Integration.
require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/contactform7/class-convertkit-contactform7.php';