diff --git a/ACTIONS-FILTERS.md b/ACTIONS-FILTERS.md index fd7aa105d..5ab4069d3 100644 --- a/ACTIONS-FILTERS.md +++ b/ACTIONS-FILTERS.md @@ -32,6 +32,12 @@   convertkit_block_content_render Filters the content in the ConvertKit Custom Content block/shortcode immediately before it is output. + + ../includes/blocks/class-convertkit-block-product.php + +   + convertkit_block_product_render + Filter the block's content immediately before it is output. ../includes/blocks/class-convertkit-block-broadcasts.php @@ -54,6 +60,12 @@   convertkit_post_get_default_settings The default settings, used to populate the Post's Settings when a Post has no Settings. + + ../includes/class-convertkit-post-type-product.php + +   + convertkit_post_type_product_register + Filter the arguments for registering the Products Custom Post Type ../includes/class-convertkit-term.php @@ -114,7 +126,7 @@

convertkit_admin_settings_register_sections - admin/class-convertkit-admin-settings.php::297 + admin/class-convertkit-admin-settings.php::302

Overview

Registers settings sections at Settings > ConvertKit.

Parameters

@@ -222,7 +234,7 @@ add_filter( 'convertkit_blocks', function( $blocks ) {

convertkit_block_content_render - includes/blocks/class-convertkit-block-content.php::267 + includes/blocks/class-convertkit-block-content.php::275

Overview

Filters the content in the ConvertKit Custom Content block/shortcode immediately before it is output.

Parameters

@@ -263,9 +275,40 @@ add_filter( 'convertkit_block_content_render', function( $content, $atts, $subsc return $content; }, 10, 5 ); +

+ convertkit_block_product_render + includes/blocks/class-convertkit-block-product.php::396 +

Overview

+

Filter the block's content immediately before it is output.

Parameters

+
+ + + + + + + + + + + + + + + + + +
ParameterTypeDescription
$htmlstringConvertKit Product button HTML.
$attsarrayBlock Attributes.

Usage

+
+add_filter( 'convertkit_block_product_render', function( $html, $atts ) {
+	// ... your code here
+	// Return value
+	return $html;
+}, 10, 2 );
+

convertkit_block_broadcasts_render - includes/blocks/class-convertkit-block-broadcasts.php::384 + includes/blocks/class-convertkit-block-broadcasts.php::408

Overview

Filter the block's content immediately before it is output.

Parameters

@@ -296,7 +339,7 @@ add_filter( 'convertkit_block_broadcasts_render', function( $html, $atts ) {

convertkit_block_broadcasts_render_ajax - includes/blocks/class-convertkit-block-broadcasts.php::431 + includes/blocks/class-convertkit-block-broadcasts.php::455

Overview

Filter the block's inner content immediately before it is output by AJAX, which occurs when pagination was clicked.

Parameters

@@ -383,6 +426,33 @@ add_filter( 'convertkit_post_get_default_settings', function( $defaults ) { return $defaults; }, 10, 1 ); +

+ convertkit_post_type_product_register + includes/class-convertkit-post-type-product.php::98 +

Overview

+

Filter the arguments for registering the Products Custom Post Type

Parameters

+
+ + + + + + + + + + + + + +
ParameterTypeDescription
register_post_type()array $argscompatible

Usage

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

convertkit_term_get_default_settings includes/class-convertkit-term.php::148 @@ -652,7 +722,7 @@ add_filter( 'convertkit_settings_get_defaults', function( $defaults ) {

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

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

@@ -695,6 +765,16 @@ add_filter( 'convertkit_is_admin_or_frontend_editor', function( $is_admin_or_fro + + + + + + + + + + @@ -805,7 +885,47 @@ do_action( 'convertkit_settings_base_render_before', function( ) {

convertkit_settings_base_render_after - admin/section/class-convertkit-settings-base.php::123 + admin/section/class-convertkit-settings-base.php::127 +

Parameters

+
  convertkit_settings_base_render_after
../admin/section/class-convertkit-settings-tools.php
 convertkit_settings_base_render_before
 convertkit_settings_base_render_after
../admin/class-convertkit-admin-settings.php
+ + + + + + + + + +
ParameterTypeDescription

Usage

+
+do_action( 'convertkit_settings_base_render_after', function(  ) {
+	// ... your code here
+}, 10, 0 );
+
+

+ convertkit_settings_base_render_before + admin/section/class-convertkit-settings-tools.php::327 +

Parameters

+ + + + + + + + + + +
ParameterTypeDescription

Usage

+
+do_action( 'convertkit_settings_base_render_before', function(  ) {
+	// ... your code here
+}, 10, 0 );
+
+

+ convertkit_settings_base_render_after + admin/section/class-convertkit-settings-tools.php::341

Parameters

@@ -1180,7 +1300,7 @@ do_action( 'convertkit_initialize_frontend', function( ) {

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

Parameters

diff --git a/languages/convertkit.pot b/languages/convertkit.pot index 78c5b377d..a97b345f4 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 1.9.8.5\n" +"Project-Id-Version: ConvertKit 2.0.1\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit-github\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: 2022-10-03T12:56:33+00:00\n" +"POT-Creation-Date: 2022-11-01T12:04:42+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.6.0\n" "X-Domain: convertkit\n" @@ -20,9 +20,10 @@ msgstr "" #: admin/class-convertkit-admin-settings.php:111 #: admin/class-convertkit-admin-settings.php:112 #: admin/class-convertkit-admin-settings.php:131 -#: includes/blocks/class-convertkit-block-broadcasts.php:107 +#: includes/blocks/class-convertkit-block-broadcasts.php:124 #: includes/blocks/class-convertkit-block-content.php:62 #: includes/blocks/class-convertkit-block-form.php:94 +#: includes/blocks/class-convertkit-block-product.php:111 #: includes/integrations/elementor/class-convertkit-elementor.php:70 msgid "ConvertKit" msgstr "" @@ -42,11 +43,11 @@ msgid "Sorry, you are not allowed to edit %s." msgstr "" #. translators: link to php.net manual -#: admin/class-convertkit-admin-settings.php:202 +#: admin/class-convertkit-admin-settings.php:200 msgid "Notice: Your server does not support the %s function - this is required for better character encoding. Please contact your webhost to have it installed." msgstr "" -#: admin/class-convertkit-admin-settings.php:244 +#: admin/class-convertkit-admin-settings.php:242 msgid "Settings" msgstr "" @@ -59,117 +60,118 @@ msgid "General Settings" msgstr "" #: admin/section/class-convertkit-settings-general.php:58 -#: includes/blocks/class-convertkit-block-broadcasts.php:292 +#: includes/blocks/class-convertkit-block-broadcasts.php:316 #: includes/blocks/class-convertkit-block-content.php:146 #: includes/blocks/class-convertkit-block-form.php:217 +#: includes/blocks/class-convertkit-block-product.php:312 msgid "General" msgstr "" -#: admin/section/class-convertkit-settings-general.php:73 +#: admin/section/class-convertkit-settings-general.php:74 msgid "Account Name" msgstr "" -#: admin/section/class-convertkit-settings-general.php:81 +#: admin/section/class-convertkit-settings-general.php:82 msgid "API Key" msgstr "" -#: admin/section/class-convertkit-settings-general.php:92 +#: admin/section/class-convertkit-settings-general.php:93 msgid "API Secret" msgstr "" #. translators: Post Type Name -#: admin/section/class-convertkit-settings-general.php:115 +#: admin/section/class-convertkit-settings-general.php:116 msgid "Default Form (%s)" msgstr "" -#: admin/section/class-convertkit-settings-general.php:131 +#: admin/section/class-convertkit-settings-general.php:132 msgid "Debug" msgstr "" -#: admin/section/class-convertkit-settings-general.php:142 +#: admin/section/class-convertkit-settings-general.php:143 msgid "Disable JavaScript" msgstr "" -#: admin/section/class-convertkit-settings-general.php:153 +#: admin/section/class-convertkit-settings-general.php:154 msgid "Disable CSS" msgstr "" -#: admin/section/class-convertkit-settings-general.php:170 +#: admin/section/class-convertkit-settings-general.php:171 msgid "Choosing a default form will embed it at the bottom of every post or page (in single view only) across your site." msgstr "" -#: admin/section/class-convertkit-settings-general.php:171 +#: admin/section/class-convertkit-settings-general.php:172 msgid "If you wish to turn off form embedding or select a different form for an individual post or page, you can do so using the ConvertKit meta box on the edit page." msgstr "" #. translators: [convertkit] shortcode, wrapped in tags -#: admin/section/class-convertkit-settings-general.php:176 +#: admin/section/class-convertkit-settings-general.php:177 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:224 +#: admin/section/class-convertkit-settings-general.php:226 msgid "Add a valid API Key and Secret to get started" msgstr "" -#: admin/section/class-convertkit-settings-general.php:231 +#: admin/section/class-convertkit-settings-general.php:233 msgid "(Not specified)" msgstr "" -#: admin/section/class-convertkit-settings-general.php:233 +#: admin/section/class-convertkit-settings-general.php:235 msgid "The name of your connected ConvertKit account." msgstr "" -#: admin/section/class-convertkit-settings-general.php:250 +#: admin/section/class-convertkit-settings-general.php:252 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:262 -#: admin/section/class-convertkit-settings-general.php:299 +#: admin/section/class-convertkit-settings-general.php:264 +#: admin/section/class-convertkit-settings-general.php:301 msgid "%1$s Required for proper plugin function." msgstr "" -#: admin/section/class-convertkit-settings-general.php:263 +#: admin/section/class-convertkit-settings-general.php:265 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:267 +#: admin/section/class-convertkit-settings-general.php:269 msgid "Alternatively specify your API Key in the %1$s file using %2$s" msgstr "" -#: admin/section/class-convertkit-settings-general.php:287 +#: admin/section/class-convertkit-settings-general.php:289 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:300 +#: admin/section/class-convertkit-settings-general.php:302 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:304 +#: admin/section/class-convertkit-settings-general.php:306 msgid "Alternatively specify your API Secret in the %1$s file using %2$s" msgstr "" -#: admin/section/class-convertkit-settings-general.php:341 +#: admin/section/class-convertkit-settings-general.php:346 msgid "No Forms exist in ConvertKit." msgstr "" #. translators: Link to sign in to ConvertKit -#: admin/section/class-convertkit-settings-general.php:344 +#: admin/section/class-convertkit-settings-general.php:349 msgid "To create a form, %s" msgstr "" -#: admin/section/class-convertkit-settings-general.php:345 +#: admin/section/class-convertkit-settings-general.php:350 #: views/backend/post/meta-box.php:61 #: views/backend/post/meta-box.php:115 msgid "sign in to ConvertKit" msgstr "" -#: admin/section/class-convertkit-settings-general.php:352 -#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:95 -#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:105 -#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:113 +#: admin/section/class-convertkit-settings-general.php:357 +#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:99 +#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:111 +#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:119 #: views/backend/post/bulk-edit.php:24 #: views/backend/post/bulk-edit.php:53 #: views/backend/post/meta-box.php:24 @@ -181,34 +183,34 @@ msgid "None" msgstr "" #. translators: Post Type name, plural -#: admin/section/class-convertkit-settings-general.php:367 -#: admin/section/class-convertkit-settings-general.php:377 +#: admin/section/class-convertkit-settings-general.php:372 +#: admin/section/class-convertkit-settings-general.php:382 msgid "Select a form above to automatically output below all %s." msgstr "" -#: admin/section/class-convertkit-settings-general.php:370 +#: admin/section/class-convertkit-settings-general.php:375 #: 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:371 +#: admin/section/class-convertkit-settings-general.php:376 msgid "to preview how this will display." msgstr "" -#: admin/section/class-convertkit-settings-general.php:415 +#: admin/section/class-convertkit-settings-general.php:420 msgid "Log requests to file and output browser console messages." msgstr "" -#: admin/section/class-convertkit-settings-general.php:416 +#: admin/section/class-convertkit-settings-general.php:421 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:433 +#: admin/section/class-convertkit-settings-general.php:438 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:450 +#: admin/section/class-convertkit-settings-general.php:455 msgid "Prevent plugin from loading CSS files. This will disable styling on the broadcasts shortcode and block. Use with caution!" msgstr "" @@ -217,27 +219,27 @@ msgstr "" msgid "Tools" msgstr "" -#: admin/section/class-convertkit-settings-tools.php:299 +#: admin/section/class-convertkit-settings-tools.php:298 msgid "An error occured uploading the configuration file." msgstr "" -#: admin/section/class-convertkit-settings-tools.php:300 +#: admin/section/class-convertkit-settings-tools.php:299 msgid "The uploaded configuration file isn't valid." msgstr "" -#: admin/section/class-convertkit-settings-tools.php:301 +#: admin/section/class-convertkit-settings-tools.php:300 msgid "The uploaded configuration file contains no settings." msgstr "" -#: admin/section/class-convertkit-settings-tools.php:302 +#: admin/section/class-convertkit-settings-tools.php:301 msgid "Configuration imported successfully." msgstr "" -#: admin/section/class-convertkit-settings-tools.php:325 +#: admin/section/class-convertkit-settings-tools.php:352 msgid "Tools to help you manage ConvertKit on your site." msgstr "" -#: admin/section/class-convertkit-settings-tools.php:340 +#: admin/section/class-convertkit-settings-tools.php:367 msgid "WordPress 5.2 or higher is required for system information report." msgstr "" @@ -270,79 +272,81 @@ msgstr "" msgid "I've created a form in ConvertKit" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:102 +#: includes/blocks/class-convertkit-block-broadcasts.php:119 msgid "ConvertKit Broadcasts" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:103 +#: includes/blocks/class-convertkit-block-broadcasts.php:120 msgid "Displays a list of your ConvertKit broadcasts." msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:108 +#: includes/blocks/class-convertkit-block-broadcasts.php:125 msgid "Broadcasts" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:109 +#: includes/blocks/class-convertkit-block-broadcasts.php:126 msgid "Posts" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:131 -msgid "Define this Block's settings in the Gutenberg sidebar to display a list of your broadcasts." +#: includes/blocks/class-convertkit-block-broadcasts.php:148 +msgid "No Broadcasts exist in ConvertKit. Send your first Broadcast in ConvertKit to see the link to it here." msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:226 +#: includes/blocks/class-convertkit-block-broadcasts.php:250 msgid "Date format" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:236 +#: includes/blocks/class-convertkit-block-broadcasts.php:260 msgid "Number of posts" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:243 +#: includes/blocks/class-convertkit-block-broadcasts.php:267 msgid "Display pagination" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:245 +#: includes/blocks/class-convertkit-block-broadcasts.php:269 msgid "If the number of broadcasts exceeds the \"Number of posts\" settings above, previous/next pagination links will be displayed." msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:248 +#: includes/blocks/class-convertkit-block-broadcasts.php:272 msgid "Newer posts label" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:250 +#: includes/blocks/class-convertkit-block-broadcasts.php:274 msgid "The label to display for the link to newer broadcasts." msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:253 +#: includes/blocks/class-convertkit-block-broadcasts.php:277 msgid "Older posts label" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:255 +#: includes/blocks/class-convertkit-block-broadcasts.php:279 msgid "The label to display for the link to older broadcasts." msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:261 +#: includes/blocks/class-convertkit-block-broadcasts.php:285 msgid "Link color" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:265 +#: includes/blocks/class-convertkit-block-broadcasts.php:289 +#: includes/blocks/class-convertkit-block-product.php:283 msgid "Background color" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:269 +#: includes/blocks/class-convertkit-block-broadcasts.php:293 +#: includes/blocks/class-convertkit-block-product.php:287 msgid "Text color" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:321 +#: includes/blocks/class-convertkit-block-broadcasts.php:345 msgid "Previous" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:322 +#: includes/blocks/class-convertkit-block-broadcasts.php:346 msgid "Next" msgstr "" -#: includes/blocks/class-convertkit-block-broadcasts.php:368 +#: includes/blocks/class-convertkit-block-broadcasts.php:392 msgid "No Broadcasts exist in ConvertKit." msgstr "" @@ -365,8 +369,8 @@ msgid "Tag" msgstr "" #: includes/blocks/class-convertkit-block-form.php:89 -#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:113 -#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:123 +#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:118 +#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:129 #: includes/widgets/class-ck-widget-form.php:35 #: views/backend/term/fields.php:12 msgid "ConvertKit Form" @@ -404,42 +408,108 @@ msgstr "" msgid "Sticky bar form \"%s\" selected. View on the frontend site to see the sticky bar form." msgstr "" +#: includes/blocks/class-convertkit-block-product.php:106 +#: includes/class-convertkit-post-type-product.php:66 +msgid "ConvertKit Product" +msgstr "" + +#: includes/blocks/class-convertkit-block-product.php:107 +msgid "Displays a button to purchase a ConvertKit product." +msgstr "" + +#: includes/blocks/class-convertkit-block-product.php:112 +#: includes/blocks/class-convertkit-block-product.php:266 +msgid "Product" +msgstr "" + +#: includes/blocks/class-convertkit-block-product.php:134 +msgid "Select a Product using the Product option in the Gutenberg sidebar." +msgstr "" + +#: includes/blocks/class-convertkit-block-product.php:275 +msgid "Button Text" +msgstr "" + +#: includes/blocks/class-convertkit-block-product.php:277 +msgid "The text to display for the button." +msgstr "" + +#: includes/blocks/class-convertkit-block-product.php:335 +msgid "Buy my product" +msgstr "" + #: includes/class-convertkit-ajax.php:50 -#: includes/class-convertkit-ajax.php:159 +#: includes/class-convertkit-ajax.php:137 msgid "ConvertKit: Required parameter `subscriber_id` not included in AJAX request." msgstr "" #: includes/class-convertkit-ajax.php:56 -#: includes/class-convertkit-ajax.php:169 +#: includes/class-convertkit-ajax.php:147 msgid "ConvertKit: Required parameter `subscriber_id` empty in AJAX request." msgstr "" -#: includes/class-convertkit-ajax.php:62 -#: includes/class-convertkit-ajax.php:120 -#: includes/class-convertkit-ajax.php:178 -msgid "ConvertKit: API Keys not defined in Plugin Settings." -msgstr "" - -#: includes/class-convertkit-ajax.php:103 +#: includes/class-convertkit-ajax.php:92 msgid "ConvertKit: Required parameter `email` not included in AJAX request." msgstr "" -#: includes/class-convertkit-ajax.php:109 +#: includes/class-convertkit-ajax.php:98 msgid "ConvertKit: Required parameter `email` is empty." msgstr "" -#: includes/class-convertkit-ajax.php:114 +#: includes/class-convertkit-ajax.php:103 msgid "ConvertKit: Required parameter `email` is not an email address." msgstr "" -#: includes/class-convertkit-ajax.php:162 +#: includes/class-convertkit-ajax.php:140 msgid "ConvertKit: Required parameter `tag` not included in AJAX request." msgstr "" -#: includes/class-convertkit-ajax.php:172 +#: includes/class-convertkit-ajax.php:150 msgid "ConvertKit: Required parameter `tag` empty in AJAX request." msgstr "" +#: includes/class-convertkit-ajax.php:156 +msgid "ConvertKit: API Keys not defined in Plugin Settings." +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 +msgid "ConvertKit Products" +msgstr "" + +#: includes/class-convertkit-post-type-product.php:68 +msgid "Add New" +msgstr "" + +#: includes/class-convertkit-post-type-product.php:69 +msgid "Add New ConvertKit Product" +msgstr "" + +#: includes/class-convertkit-post-type-product.php:70 +msgid "Edit ConvertKit Product" +msgstr "" + +#: includes/class-convertkit-post-type-product.php:71 +msgid "New ConvertKit Product" +msgstr "" + +#: includes/class-convertkit-post-type-product.php:72 +msgid "View ConvertKit Product" +msgstr "" + +#: includes/class-convertkit-post-type-product.php:73 +msgid "Search ConvertKit Products" +msgstr "" + +#: includes/class-convertkit-post-type-product.php:74 +msgid "No ConvertKit Products found" +msgstr "" + +#: includes/class-convertkit-post-type-product.php:75 +msgid "No ConvertKit Products found in Trash" +msgstr "" + #. translators: ConvertKit Form ID #: includes/class-convertkit-resource-forms.php:83 msgid "ConvertKit Form ID %s does not exist on ConvertKit." @@ -454,12 +524,22 @@ msgstr "" msgid "ConvertKit Landing Page ID %s does not exist on ConvertKit." msgstr "" +#. translators: ConvertKit Product ID +#: includes/class-convertkit-resource-products.php:110 +msgid "ConvertKit Product ID %s does not exist on ConvertKit." +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:379 +#: includes/class-wp-convertkit.php:381 msgid "ConvertKit Error: Could not load Plugin class %1$s" msgstr "" -#: includes/class-wp-convertkit.php:389 +#: includes/class-wp-convertkit.php:391 msgid "ConvertKit Error" msgstr "" @@ -492,24 +572,24 @@ msgstr "" msgid ". These fields will be sent to ConvertKit for the subscription." msgstr "" -#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:89 -#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:93 +#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:92 +#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:97 msgid "No Forms exist on ConvertKit." msgstr "" -#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:106 +#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:110 msgid "No Contact Form 7 Forms exist in the Contact Form 7 Plugin." msgstr "" -#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:112 +#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:117 msgid "Contact Form 7 Form" msgstr "" -#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:114 +#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:119 msgid "Contact Form 7 Email Field" msgstr "" -#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:115 +#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:120 msgid "Contact Form 7 Name Field" msgstr "" @@ -534,23 +614,23 @@ msgstr "" msgid "ConvertKit seamlessly integrates with WishList Member to let you capture all of your WishList Membership registrations within your ConvertKit forms." msgstr "" -#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:83 +#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:86 msgid "No WishList Member Levels exist in the WishList Member Plugin." msgstr "" -#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:99 +#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:104 msgid "No Tags exist on ConvertKit." msgstr "" -#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:118 +#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:124 msgid "Unsubscribe from all" msgstr "" -#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:122 +#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:128 msgid "WishList Membership Level" msgstr "" -#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:124 +#: includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php:130 msgid "Unsubscribe Action" msgstr "" @@ -662,71 +742,71 @@ msgstr "" msgid "No, I'm having issues with %s" msgstr "" -#: views/backend/settings/tools.php:28 +#: views/backend/settings/tools.php:12 msgid "Debug Log" msgstr "" -#: views/backend/settings/tools.php:31 +#: views/backend/settings/tools.php:14 msgid "Use this tool to help debug ConvertKit plugin functionality." msgstr "" -#: views/backend/settings/tools.php:32 +#: views/backend/settings/tools.php:15 msgid "For performance, the last 500 lines of the log are displayed. Use the Download Log option to review the full log." msgstr "" -#: views/backend/settings/tools.php:43 +#: views/backend/settings/tools.php:26 msgid "Download log" msgstr "" -#: views/backend/settings/tools.php:50 +#: views/backend/settings/tools.php:33 msgid "Clear log" msgstr "" -#: views/backend/settings/tools.php:57 +#: views/backend/settings/tools.php:40 msgid "Log file" msgstr "" -#: views/backend/settings/tools.php:65 +#: views/backend/settings/tools.php:47 msgid "System Info" msgstr "" -#: views/backend/settings/tools.php:67 +#: views/backend/settings/tools.php:48 msgid "Use this tool to send system info to support when necessary." msgstr "" -#: views/backend/settings/tools.php:74 +#: views/backend/settings/tools.php:55 msgid "Download system info" msgstr "" -#: views/backend/settings/tools.php:85 +#: views/backend/settings/tools.php:65 msgid "Export Configuration" msgstr "" -#: views/backend/settings/tools.php:88 +#: views/backend/settings/tools.php:68 msgid "Downloads this plugin's configuration as a JSON file." msgstr "" -#: views/backend/settings/tools.php:90 +#: views/backend/settings/tools.php:70 msgid "This file includes sensitive API credentials. Use with caution." msgstr "" -#: views/backend/settings/tools.php:97 +#: views/backend/settings/tools.php:77 msgid "Export" msgstr "" -#: views/backend/settings/tools.php:108 +#: views/backend/settings/tools.php:87 msgid "Import Configuration" msgstr "" -#: views/backend/settings/tools.php:111 +#: views/backend/settings/tools.php:90 msgid "Imports a configuration file generated by this plugin." msgstr "" -#: views/backend/settings/tools.php:113 +#: views/backend/settings/tools.php:92 msgid "This will overwrite any existing settings stored on this installation." msgstr "" -#: views/backend/settings/tools.php:122 +#: views/backend/settings/tools.php:101 msgid "Import" msgstr "" diff --git a/readme.txt b/readme.txt index 0b23e3cdd..684315811 100755 --- a/readme.txt +++ b/readme.txt @@ -3,9 +3,9 @@ Contributors: nathanbarry, growdev, travisnorthcutt, ggwicz Donate link: https://convertkit.com Tags: email marketing, email newsletter, newsletter, convertkit Requires at least: 5.0 -Tested up to: 6.0.2 +Tested up to: 6.1 Requires PHP: 5.6.20 -Stable tag: 2.0.0 +Stable tag: 2.0.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -117,8 +117,10 @@ Full Plugin documentation can be found [here](https://help.convertkit.com/en/art == Changelog == -### 2.0.1 2022-10-xx +### 2.0.1 2022-11-01 * Added: Broadcasts: Block: Display message in editor when no Broadcasts exist in ConvertKit +* Fixed: Settings: Contact Form 7: Render screen correctly when no Forms in ConvertKit +* Fixed: Settings: WishList Member: Render screen correctly when no Forms in ConvertKit ### 2.0.0 2022-10-24 * Added: ConvertKit Products Block, to output a button linking to a ConvertKit Product or Tip Jar diff --git a/resources/backend/js/preview-output.js b/resources/backend/js/preview-output.js index 17883f70c..f862c9bae 100644 --- a/resources/backend/js/preview-output.js +++ b/resources/backend/js/preview-output.js @@ -21,8 +21,6 @@ jQuery( document ).ready( var target = $( this ).data( 'target' ), link = $( this ).data( 'link' ) + $( this ).val(); - console.log( link ); - $( target ).attr( 'href', link ); } diff --git a/wp-convertkit.php b/wp-convertkit.php index 5af81f56a..4e7c801aa 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.0 + * Version: 2.0.1 * 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.0' ); +define( 'CONVERTKIT_PLUGIN_VERSION', '2.0.1' ); // Load shared classes, if they have not been included by another ConvertKit Plugin. if ( ! class_exists( 'ConvertKit_API' ) ) {