From 8a367bdf5d50551e29f604dc15eff6a59a756eef Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Wed, 15 Feb 2023 15:01:38 +0000 Subject: [PATCH] 2.1.0 --- ACTIONS-FILTERS.md | 160 +++++++++++++++++-- languages/convertkit.pot | 329 +++++++++++++++++++++++++++++++++++---- readme.txt | 12 +- wp-convertkit.php | 4 +- 4 files changed, 459 insertions(+), 46 deletions(-) diff --git a/ACTIONS-FILTERS.md b/ACTIONS-FILTERS.md index f36f7ffcf..3446493a4 100644 --- a/ACTIONS-FILTERS.md +++ b/ACTIONS-FILTERS.md @@ -18,6 +18,10 @@   convertkit_get_supported_post_types Defines the Post Types that support ConvertKit Forms. + +   + convertkit_get_supported_restrict_content_post_types + Defines the Post Types that support Restricted Content / Members Content functionality.   convertkit_shortcodes @@ -72,6 +76,12 @@   convertkit_term_get_default_settings The default settings, used to populate the Term's Settings when a Term has no Settings. + + ../includes/class-convertkit-settings-restrict-content.php + +   + convertkit_settings_restrict_content_get_defaults + The default settings, used when the ConvertKit Restrict Content Settings haven't been saved e.g. on a new installation. ../includes/class-convertkit-user.php @@ -96,6 +106,16 @@   convertkit_wishlist_settings_get_defaults The default settings, used when WishList's Settings haven't been saved e.g. on a new installation or when the WishList Plugin has just been activated for the first time. + + ../includes/class-convertkit-output-restrict-content.php + +   + convertkit_output_restrict_content_get_resource_type + Define the ConvertKit Resource Type that the visitor must be subscribed against to access this content, overriding the Post setting. Return false or an empty string to not restrict content. + +   + convertkit_output_restrict_content_get_resource_id + Define the ConvertKit Resource ID that the visitor must be subscribed against to access this content, overriding the Post setting. Return 0 to not restrict content. ../includes/class-convertkit-output.php @@ -126,7 +146,7 @@

convertkit_admin_settings_register_sections - admin/class-convertkit-admin-settings.php::318 + admin/class-convertkit-admin-settings.php::340

Overview

Registers settings sections at Settings > ConvertKit.

Parameters

@@ -178,9 +198,36 @@ add_filter( 'convertkit_get_supported_post_types', function( $post_types ) { return $post_types; }, 10, 1 ); +

+ convertkit_get_supported_restrict_content_post_types + includes/functions.php::147 +

Overview

+

Defines the Post Types that support Restricted Content / Members Content functionality.

Parameters

+
+ + + + + + + + + + + + + +
ParameterTypeDescription
$post_typesarrayPost Types

Usage

+
+add_filter( 'convertkit_get_supported_restrict_content_post_types', function( $post_types ) {
+	// ... your code here
+	// Return value
+	return $post_types;
+}, 10, 1 );
+

convertkit_shortcodes - includes/functions.php::145 + includes/functions.php::171

Overview

Registers shortcodes for the ConvertKit Plugin.

Parameters

@@ -207,7 +254,7 @@ add_filter( 'convertkit_shortcodes', function( $shortcodes ) {

convertkit_blocks - includes/functions.php::169 + includes/functions.php::195

Overview

Registers blocks for the ConvertKit Plugin.

Parameters

@@ -405,7 +452,7 @@ add_filter( 'convertkit_block_form_render', function( $form, $atts, $form_id ) {

convertkit_post_get_default_settings - includes/class-convertkit-post.php::232 + includes/class-convertkit-post.php::314

Overview

The default settings, used to populate the Post's Settings when a Post has no Settings.

Parameters

@@ -484,6 +531,33 @@ add_filter( 'convertkit_term_get_default_settings', function( $defaults ) { return $defaults; }, 10, 1 ); +

+ convertkit_settings_restrict_content_get_defaults + includes/class-convertkit-settings-restrict-content.php::132 +

Overview

+

The default settings, used when the ConvertKit Restrict Content Settings haven't been saved e.g. on a new installation.

Parameters

+
+ + + + + + + + + + + + + +
ParameterTypeDescription
$defaultsarray

Usage

+
+add_filter( 'convertkit_settings_restrict_content_get_defaults', function( $defaults ) {
+	// ... your code here
+	// Return value
+	return $defaults;
+}, 10, 1 );
+

convertkit_user_get_default_settings includes/class-convertkit-user.php::107 @@ -596,6 +670,68 @@ add_filter( 'convertkit_wishlist_settings_get_defaults', function( $defaults ) { return $defaults; }, 10, 1 ); +

+ convertkit_output_restrict_content_get_resource_type + includes/class-convertkit-output-restrict-content.php::520 +

Overview

+

Define the ConvertKit Resource Type that the visitor must be subscribed against to access this content, overriding the Post setting. Return false or an empty string to not restrict content.

Parameters

+ + + + + + + + + + + + + + + + + + +
ParameterTypeDescription
Resourcestring $resource_typeType
$post_idintPost ID

Usage

+
+add_filter( 'convertkit_output_restrict_content_get_resource_type', function( $resource_type, $post_id ) {
+	// ... your code here
+	// Return value
+	return $resource_type;
+}, 10, 2 );
+
+

+ convertkit_output_restrict_content_get_resource_id + includes/class-convertkit-output-restrict-content.php::556 +

Overview

+

Define the ConvertKit Resource ID that the visitor must be subscribed against to access this content, overriding the Post setting. Return 0 to not restrict content.

Parameters

+ + + + + + + + + + + + + + + + + + +
ParameterTypeDescription
$resource_idintResource ID
$post_idintPost ID

Usage

+
+add_filter( 'convertkit_output_restrict_content_get_resource_id', function( $resource_id, $post_id ) {
+	// ... your code here
+	// Return value
+	return $resource_id;
+}, 10, 2 );
+

convertkit_output_page_takeover_landing_page_id includes/class-convertkit-output.php::138 @@ -726,7 +862,7 @@ add_filter( 'convertkit_settings_get_defaults', function( $defaults ) {

convertkit_is_admin_or_frontend_editor - includes/class-wp-convertkit.php::302 + includes/class-wp-convertkit.php::306

Overview

Filters whether the current request is a WordPress Administration / Frontend Editor request or not. Page Builders can set this to true to allow ConvertKit to load its administration functionality.

Parameters

@@ -869,7 +1005,7 @@ add_filter( 'convertkit_is_admin_or_frontend_editor', function( $is_admin_or_fro

convertkit_settings_base_render_before - admin/section/class-convertkit-settings-base.php::115 + admin/section/class-convertkit-settings-base.php::124

Parameters

@@ -889,7 +1025,7 @@ do_action( 'convertkit_settings_base_render_before', function( ) {

convertkit_settings_base_render_after - admin/section/class-convertkit-settings-base.php::132 + admin/section/class-convertkit-settings-base.php::141

Parameters

@@ -1224,7 +1360,7 @@ do_action( 'convertkit_output_output_form', function( ) {

convertkit_initialize_admin - includes/class-wp-convertkit.php::81 + includes/class-wp-convertkit.php::84

Parameters

@@ -1244,7 +1380,7 @@ do_action( 'convertkit_initialize_admin', function( ) {

convertkit_initialize_admin_or_frontend_editor - includes/class-wp-convertkit.php::102 + includes/class-wp-convertkit.php::105

Parameters

@@ -1264,7 +1400,7 @@ do_action( 'convertkit_initialize_admin_or_frontend_editor', function( ) {

convertkit_initialize_cli_cron - includes/class-wp-convertkit.php::123 + includes/class-wp-convertkit.php::126

Parameters

@@ -1284,7 +1420,7 @@ do_action( 'convertkit_initialize_cli_cron', function( ) {

convertkit_initialize_frontend - includes/class-wp-convertkit.php::146 + includes/class-wp-convertkit.php::150

Parameters

@@ -1304,7 +1440,7 @@ do_action( 'convertkit_initialize_frontend', function( ) {

convertkit_initialize_global - includes/class-wp-convertkit.php::182 + includes/class-wp-convertkit.php::186

Parameters

diff --git a/languages/convertkit.pot b/languages/convertkit.pot index 5eec24a98..88ae817bb 100644 --- a/languages/convertkit.pot +++ b/languages/convertkit.pot @@ -2,14 +2,14 @@ # This file is distributed under the same license as the ConvertKit plugin. msgid "" msgstr "" -"Project-Id-Version: ConvertKit 2.0.8\n" +"Project-Id-Version: ConvertKit 2.1.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-02-02T14:04:28+00:00\n" +"POT-Creation-Date: 2023-02-15T14:45:47+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.7.1\n" "X-Domain: convertkit\n" @@ -42,6 +42,94 @@ msgstr "" msgid "Sorry, you are not allowed to edit %s." msgstr "" +#: admin/class-convertkit-admin-notices.php:74 +msgid "ConvertKit: Authorization failed. Please enter valid API credentials on the" +msgstr "" + +#: admin/class-convertkit-admin-notices.php:78 +msgid "settings screen." +msgstr "" + +#: admin/class-convertkit-admin-restrict-content.php:185 +msgid "Add New Member Content" +msgstr "" + +#: admin/class-convertkit-admin-restrict-content.php:243 +msgid "ConvertKit Member Content" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:32 +#: admin/class-convertkit-admin-settings-restrict-content.php:33 +#: views/backend/post/meta-box.php:161 +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-1.php:11 +msgid "Member Content" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:51 +msgid "Enable" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:57 +msgid "Enables the Member Content functionality, displaying configuration options on pages to require a subscription to a ConvertKit product" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:63 +msgid "Subscribe Text" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:70 +msgid "The text to display above the subscribe button, explaining why the content is only available to subscribers." +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:77 +msgid "Subscribe Button Label" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:84 +msgid "The text to display for the call to action button to subscribe to the ConvertKit product." +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:91 +msgid "Email Text" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:98 +msgid "The text to display above the email form, instructing the subscriber to enter their email address to receive a login link to access the member's only content." +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:105 +msgid "Email Button Label" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:112 +msgid "The text to display for the button to submit the subscriber's email address and receive a login link to access the member only content." +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:119 +msgid "Email Check Text" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:126 +msgid "The text to display instructing the subscriber to check their email for the login link that was sent." +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:133 +msgid "No Access Text" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:140 +msgid "The text to display for a subscriber who authenticates via the login link, but does not have access to the product." +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:155 +#: admin/class-convertkit-admin-settings.php:309 +msgid "Beta" +msgstr "" + +#: admin/class-convertkit-admin-settings-restrict-content.php:156 +msgid "Defines the text and button labels to display when a Page, Post or Custom Post has its Member Content setting set to a Product, and the visitor has not authenticated/subscribed." +msgstr "" + #: admin/class-convertkit-admin-settings.php:161 msgid "If you need help setting up the plugin please refer to the" msgstr "" @@ -59,7 +147,7 @@ msgstr "" msgid "Settings" msgstr "" -#: admin/class-convertkit-admin-settings.php:281 +#: admin/class-convertkit-admin-settings.php:282 msgid "Documentation" msgstr "" @@ -121,66 +209,66 @@ msgstr "" msgid "The default form can be inserted into the middle of post or page content by using the %s shortcode." msgstr "" -#: admin/section/class-convertkit-settings-general.php:239 +#: admin/section/class-convertkit-settings-general.php:251 msgid "Add a valid API Key and Secret to get started" msgstr "" -#: admin/section/class-convertkit-settings-general.php:246 +#: admin/section/class-convertkit-settings-general.php:258 msgid "(Not specified)" msgstr "" -#: admin/section/class-convertkit-settings-general.php:248 +#: admin/section/class-convertkit-settings-general.php:260 msgid "The name of your connected ConvertKit account." msgstr "" -#: admin/section/class-convertkit-settings-general.php:265 +#: admin/section/class-convertkit-settings-general.php:277 msgid "Your API Key has been defined in your wp-config.php file. For security, it is not displayed here." msgstr "" #. translators: %1$s: Link to ConvertKit Account -#: admin/section/class-convertkit-settings-general.php:277 -#: admin/section/class-convertkit-settings-general.php:314 +#: admin/section/class-convertkit-settings-general.php:289 +#: admin/section/class-convertkit-settings-general.php:327 msgid "%1$s Required for proper plugin function." msgstr "" -#: admin/section/class-convertkit-settings-general.php:278 +#: admin/section/class-convertkit-settings-general.php:290 msgid "Get your ConvertKit API Key." msgstr "" #. translators: Account, %1$s: wp-config.php, %2$s: block for API Key definition -#: admin/section/class-convertkit-settings-general.php:282 +#: admin/section/class-convertkit-settings-general.php:294 msgid "Alternatively specify your API Key in the %1$s file using %2$s" msgstr "" -#: admin/section/class-convertkit-settings-general.php:302 +#: admin/section/class-convertkit-settings-general.php:315 msgid "Your API Secret has been defined in your wp-config.php file. For security, it is not displayed here." msgstr "" -#: admin/section/class-convertkit-settings-general.php:315 +#: admin/section/class-convertkit-settings-general.php:328 msgid "Get your ConvertKit API Secret." msgstr "" #. translators: Account, %1$s: wp-config.php, %2$s: block for API Secret definition -#: admin/section/class-convertkit-settings-general.php:319 +#: admin/section/class-convertkit-settings-general.php:332 msgid "Alternatively specify your API Secret in the %1$s file using %2$s" msgstr "" -#: admin/section/class-convertkit-settings-general.php:359 +#: admin/section/class-convertkit-settings-general.php:373 msgid "No Forms exist in ConvertKit." msgstr "" #. translators: Link to sign in to ConvertKit -#: admin/section/class-convertkit-settings-general.php:362 +#: admin/section/class-convertkit-settings-general.php:376 msgid "To create a form, %s" msgstr "" -#: admin/section/class-convertkit-settings-general.php:363 +#: admin/section/class-convertkit-settings-general.php:377 #: views/backend/post/meta-box.php:58 #: views/backend/post/meta-box.php:110 msgid "sign in to ConvertKit" msgstr "" -#: admin/section/class-convertkit-settings-general.php:370 +#: admin/section/class-convertkit-settings-general.php:384 #: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:112 #: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:124 #: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:132 @@ -195,35 +283,35 @@ msgid "None" msgstr "" #. translators: Post Type name, plural -#: admin/section/class-convertkit-settings-general.php:385 -#: admin/section/class-convertkit-settings-general.php:395 +#: admin/section/class-convertkit-settings-general.php:399 +#: admin/section/class-convertkit-settings-general.php:409 msgid "Select a form above to automatically output below all %s." msgstr "" -#: admin/section/class-convertkit-settings-general.php:388 +#: admin/section/class-convertkit-settings-general.php:402 #: views/backend/setup-wizard/convertkit-setup/content-3.php:73 #: views/backend/setup-wizard/convertkit-setup/content-3.php:108 msgid "Click here" msgstr "" -#: admin/section/class-convertkit-settings-general.php:389 +#: admin/section/class-convertkit-settings-general.php:403 msgid "to preview how this will display." msgstr "" -#: admin/section/class-convertkit-settings-general.php:433 +#: admin/section/class-convertkit-settings-general.php:447 msgid "Log requests to file and output browser console messages." msgstr "" -#: admin/section/class-convertkit-settings-general.php:434 +#: admin/section/class-convertkit-settings-general.php:448 msgid "You can ignore this unless you're working with our support team to resolve an issue. Decheck this option to improve performance." msgstr "" -#: admin/section/class-convertkit-settings-general.php:451 +#: admin/section/class-convertkit-settings-general.php:465 msgid "Prevent plugin from loading JavaScript files. This will disable the custom content and tagging features of the plugin. Does not apply to landing pages. Use with caution!" msgstr "" -#: admin/section/class-convertkit-settings-general.php:468 -msgid "Prevent plugin from loading CSS files. This will disable styling on the broadcasts shortcode and block. Use with caution!" +#: admin/section/class-convertkit-settings-general.php:482 +msgid "Prevent plugin from loading CSS files. This will disable styling on broadcasts, product buttons and member's content. Use with caution!" msgstr "" #: admin/section/class-convertkit-settings-tools.php:28 @@ -256,6 +344,7 @@ msgid "WordPress 5.2 or higher is required for system information report." msgstr "" #: admin/setup-wizard/class-convertkit-admin-setup-wizard-plugin.php:87 +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:117 msgid "Setup" msgstr "" @@ -277,6 +366,7 @@ msgid "Finish Setup" msgstr "" #: admin/setup-wizard/class-convertkit-admin-setup-wizard-plugin.php:102 +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:126 msgid "Done" msgstr "" @@ -284,6 +374,57 @@ msgstr "" msgid "I've created a form in ConvertKit" msgstr "" +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:120 +msgid "Configure" +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:122 +msgid "Submit" +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:209 +msgid "Add a valid API Key and Secret in the ConvertKit Plugin's settings to get started" +msgstr "" + +#. translators: Post Type +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:218 +msgid "The post type `%s` is not supported for Member Content." +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:221 +msgid "WordPress Error" +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:245 +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-1.php:33 +msgid "Download" +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:248 +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-1.php:42 +msgid "Course" +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:294 +msgid "The downloadable content (that is available when the visitor has paid for the ConvertKit product) goes here." +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:353 +msgid "Some introductory text about lesson" +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:359 +msgid "Lesson" +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:361 +msgid "content (that is available when the visitor has paid for the ConvertKit product) goes here." +msgstr "" + +#: admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php:547 +msgid "Start Course" +msgstr "" + #: includes/blocks/class-convertkit-block-broadcasts.php:119 msgid "ConvertKit Broadcasts" msgstr "" @@ -383,7 +524,6 @@ msgstr "" #: includes/blocks/class-convertkit-block-form.php:89 #: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:131 #: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:142 -#: includes/widgets/class-ck-widget-form.php:35 #: views/backend/term/fields-add.php:11 #: views/backend/term/fields-edit.php:12 msgid "ConvertKit Form" @@ -485,6 +625,10 @@ msgstr "" msgid "ConvertKit: API Keys not defined in Plugin Settings." msgstr "" +#: includes/class-convertkit-output-restrict-content.php:134 +msgid "Invalid nonce specified. Please try again." +msgstr "" + #: includes/class-convertkit-post-type-product.php:65 #: includes/class-convertkit-post-type-product.php:67 #: includes/class-convertkit-post-type-product.php:78 @@ -523,7 +667,7 @@ msgstr "" msgid "No ConvertKit Products found in Trash" msgstr "" -#: includes/class-convertkit-preview-output.php:181 +#: includes/class-convertkit-preview-output.php:196 msgid "Edit form in ConvertKit" msgstr "" @@ -546,17 +690,41 @@ msgstr "" msgid "ConvertKit Product ID %s does not exist on ConvertKit." msgstr "" +#: includes/class-convertkit-settings-restrict-content.php:117 +msgid "This content is only available to premium subscribers" +msgstr "" + +#: includes/class-convertkit-settings-restrict-content.php:118 +msgid "Subscribe" +msgstr "" + +#: includes/class-convertkit-settings-restrict-content.php:119 +msgid "Already a premium subscriber? Enter the email address used when purchasing below, to receive a login link to access." +msgstr "" + +#: includes/class-convertkit-settings-restrict-content.php:120 +msgid "Send email" +msgstr "" + +#: includes/class-convertkit-settings-restrict-content.php:121 +msgid "Check your email and click the link to login, or enter the code from the email below." +msgstr "" + +#: includes/class-convertkit-settings-restrict-content.php:122 +msgid "Your account does not have access to this content. Please use the button below to purchase, or enter the email address you used to purchase the product." +msgstr "" + #: includes/class-convertkit-subscriber.php:69 #: includes/class-convertkit-subscriber.php:112 msgid "API Key and Secret not configured in Plugin Settings." msgstr "" #. translators: %1$s: PHP class name -#: includes/class-wp-convertkit.php:381 +#: includes/class-wp-convertkit.php:385 msgid "ConvertKit Error: Could not load Plugin class %1$s" msgstr "" -#: includes/class-wp-convertkit.php:391 +#: includes/class-wp-convertkit.php:395 msgid "ConvertKit Error" msgstr "" @@ -651,6 +819,10 @@ msgstr "" msgid "Unsubscribe Action" msgstr "" +#: includes/widgets/class-ck-widget-form.php:35 +msgid "ConvertKit Form (Legacy Widget)" +msgstr "" + #: includes/widgets/class-ck-widget-form.php:38 msgid "Display a ConvertKit form." msgstr "" @@ -665,6 +837,7 @@ msgstr "" #: views/backend/post/bulk-edit.php:23 #: views/backend/post/bulk-edit.php:54 +#: views/backend/post/bulk-edit.php:89 msgid "— No Change —" msgstr "" @@ -690,6 +863,30 @@ msgstr "" msgid "Refresh Tags from ConvertKit account" msgstr "" +#: views/backend/post/bulk-edit.php:80 +#: views/backend/post/quick-edit.php:64 +msgid "Member" +msgstr "" + +#: views/backend/post/bulk-edit.php:91 +#: views/backend/post/meta-box.php:167 +#: views/backend/post/quick-edit.php:67 +msgid "Don't restrict content to members only." +msgstr "" + +#: views/backend/post/bulk-edit.php:98 +#: views/backend/post/meta-box.php:173 +#: views/backend/post/quick-edit.php:74 +#: views/backend/post/wp-list-table-filter.php:19 +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-2.php:65 +msgid "Products" +msgstr "" + +#: views/backend/post/bulk-edit.php:114 +#: views/backend/post/quick-edit.php:90 +msgid "Refresh Products from ConvertKit account" +msgstr "" + #. translators: settings url #: views/backend/post/meta-box.php:45 msgid "Default: Uses the form specified on the settings page." @@ -737,6 +934,14 @@ msgstr "" msgid "A visitor is deemed to be subscribed if they have clicked a link in an email to this site which includes their subscriber ID, or have entered their email address in a ConvertKit Form on this site." msgstr "" +#: views/backend/post/meta-box.php:188 +msgid "Refresh Products Pages from ConvertKit account" +msgstr "" + +#: views/backend/post/meta-box.php:192 +msgid "Select the ConvertKit product that the visitor must be subscribed to, permitting them access to view this members only content." +msgstr "" + #. translators: %1$s: Post Type Singular Name, %2$s: Link to Plugin Settings #: views/backend/post/no-api-key.php:15 msgid "To configure the ConvertKit Form / Landing Page to display on this %1$s, enter your ConvertKit API credentials in the %2$s" @@ -747,6 +952,10 @@ msgstr "" msgid "Plugin Settings" msgstr "" +#: views/backend/post/wp-list-table-filter.php:12 +msgid "All content" +msgstr "" + #. translators: Plugin Name #: views/backend/review/notice.php:17 msgid "We'd be super grateful if you could spread the word about %s and give it a 5 star rating on WordPress?" @@ -829,6 +1038,56 @@ msgstr "" msgid "Import" msgstr "" +#. translators: Link to ConvertKit Products +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-1.php:16 +msgid "This will generate content that visitors can access once they purchase a %s." +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-1.php:20 +msgid "ConvertKit product" +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-1.php:28 +msgid "What type of content are you offering?" +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-1.php:36 +msgid "Require visitors to purchase a ConvertKit product, granting access to a single Page's content, which includes downloadable assets." +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-1.php:45 +msgid "Require visitors to purchase a ConvertKit product, granting access to a sequential series of Pages, such as a course, lessons or tutorials." +msgstr "" + +#. translators: Type of content (download, course) +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-2.php:15 +msgid "Configure %s" +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-2.php:25 +msgid "What is the name of the content?" +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-2.php:27 +msgid "e.g. Free PDF, Macro Photography Course" +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-2.php:33 +msgid "Describe the content for non-members." +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-2.php:36 +msgid "This will be displayed above product's call to action button." +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-2.php:45 +msgid "How many lessons does this course consist of?" +msgstr "" + +#: views/backend/setup-wizard/convertkit-restrict-content-setup/content-2.php:56 +msgid "The ConvertKit Product the visitor must purchase to see the content." +msgstr "" + #: views/backend/setup-wizard/convertkit-setup/content-1.php:11 msgid "Welcome to the ConvertKit Setup Wizard" msgstr "" @@ -1027,3 +1286,11 @@ msgstr "" #: views/backend/tinymce/modal.php:35 msgid "Insert" msgstr "" + +#: views/frontend/restrict-content/product-code.php:21 +msgid "Email Code" +msgstr "" + +#: views/frontend/restrict-content/product-code.php:23 +msgid "Verify" +msgstr "" diff --git a/readme.txt b/readme.txt index 9a553a4e2..54c5b279a 100755 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: email marketing, email newsletter, newsletter, convertkit Requires at least: 5.0 Tested up to: 6.1.1 Requires PHP: 5.6.20 -Stable tag: 2.0.8 +Stable tag: 2.1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -60,6 +60,8 @@ Embed existing email newsletters on your WordPress web site, ensuring visitors n Embed buttons (or link text) to sell your ConvertKit Products in seconds - whether that's digital goods, paid newsletters, music, coaching and more. +Already have content on your site that you want to sell? Use the Member's Content functionality on Pages to require subscribers purchase a ConvertKit Product to access your content - whether that's a course or digital download. + = Plugin Integrations = With the ConvertKit for WordPress Plugin, you also get: @@ -117,6 +119,14 @@ Full Plugin documentation can be found [here](https://help.convertkit.com/en/art == Changelog == +### 2.1.0 2023-02-15 +* Added: Member's Content (Beta): Require subscribers to purchase a ConvertKit Product to access specific Pages on your WordPress site. Head over to `Settings > ConvertKit > Member's Content` to get started. +* Fix: Product: Block and Shortcode: Set stylesheet ID to `convertkit-product-css`, to match other blocks +* Fix: Blocks: Use wp.serverSideRender instead of soon to be deprecated wp.components.ServerSideRender +* Fix: Forms: Preview: Support for previewing and editing Legacy Forms +* Fix: Improved performance in WordPress Admin when invalid API credentials specified on new installation +* Fix: Display notice in WordPress Admin with link to settings screen when invalid API credentials specified + ### 2.0.8 2023-02-02 * Added: Settings: ConvertKit: Documentation tab * Added: Forms: Link to edit form in ConvertKit when previewing a Page, Post or Custom Post containing a ConvertKit form diff --git a/wp-convertkit.php b/wp-convertkit.php index 544912bd8..14c7c058e 100644 --- a/wp-convertkit.php +++ b/wp-convertkit.php @@ -9,7 +9,7 @@ * Plugin Name: ConvertKit * Plugin URI: https://convertkit.com/ * Description: Quickly and easily integrate ConvertKit forms into your site. - * Version: 2.0.8 + * Version: 2.1.0 * Author: ConvertKit * Author URI: https://convertkit.com/ * Text Domain: convertkit @@ -25,7 +25,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', '2.0.8' ); +define( 'CONVERTKIT_PLUGIN_VERSION', '2.1.0' ); // Load shared classes, if they have not been included by another ConvertKit Plugin. if ( ! class_exists( 'ConvertKit_API' ) ) {