Skip to content

Commit

Permalink
2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Jan 8, 2024
1 parent 4cf6b6a commit 9fbd2a5
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 29 deletions.
80 changes: 75 additions & 5 deletions ACTIONS-FILTERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@
<td>&nbsp;</td>
<td><a href="#convertkit_output_restrict_content_get_resource_id"><code>convertkit_output_restrict_content_get_resource_id</code></a></td>
<td>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.</td>
</tr><tr>
<td>&nbsp;</td>
<td><a href="#convertkit_output_restrict_content_content_preview"><code>convertkit_output_restrict_content_content_preview</code></a></td>
<td>Define the output for the content preview when the visitor is not an authenticated subscriber.</td>
</tr><tr>
<td>&nbsp;</td>
<td><a href="#convertkit_output_restrict_content_call_to_action"><code>convertkit_output_restrict_content_call_to_action</code></a></td>
<td>Define the output for the call to action, displayed below the content preview, when the visitor is not an authenticated subscriber.</td>
</tr><tr>
<td colspan="3">../includes/class-convertkit-output.php</td>
</tr><tr>
Expand Down Expand Up @@ -484,7 +492,7 @@ add_filter( 'convertkit_block_content_render', function( $content, $atts, $subsc
</pre>
<h3 id="convertkit_block_product_render">
convertkit_block_product_render
<code>includes/blocks/class-convertkit-block-product.php::414</code>
<code>includes/blocks/class-convertkit-block-product.php::446</code>
</h3><h4>Overview</h4>
<p>Filter the block's content immediately before it is output.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -732,7 +740,7 @@ add_filter( 'convertkit_term_get_default_settings', function( $defaults ) {
</pre>
<h3 id="convertkit_settings_broadcasts_get_defaults">
convertkit_settings_broadcasts_get_defaults
<code>includes/class-convertkit-settings-broadcasts.php::216</code>
<code>includes/class-convertkit-settings-broadcasts.php::230</code>
</h3><h4>Overview</h4>
<p>The default settings, used when the ConvertKit Broadcasts Settings haven't been saved e.g. on a new installation.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -985,6 +993,68 @@ add_filter( 'convertkit_output_restrict_content_get_resource_id', function( $res
return $resource_id;
}, 10, 2 );
</pre>
<h3 id="convertkit_output_restrict_content_content_preview">
convertkit_output_restrict_content_content_preview
<code>includes/class-convertkit-output-restrict-content.php::848</code>
</h3><h4>Overview</h4>
<p>Define the output for the content preview when the visitor is not an authenticated subscriber.</p><h4>Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>$content_preview</td>
<td>string</td>
<td>Content preview.</td>
</tr><tr>
<td>$post_id</td>
<td>int</td>
<td>Post ID.</td>
</tr>
</tbody>
</table><h4>Usage</h4>
<pre>
add_filter( 'convertkit_output_restrict_content_content_preview', function( $content_preview, $post_id ) {
// ... your code here
// Return value
return $content_preview;
}, 10, 2 );
</pre>
<h3 id="convertkit_output_restrict_content_call_to_action">
convertkit_output_restrict_content_call_to_action
<code>includes/class-convertkit-output-restrict-content.php::862</code>
</h3><h4>Overview</h4>
<p>Define the output for the call to action, displayed below the content preview, when the visitor is not an authenticated subscriber.</p><h4>Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>$call_to_action</td>
<td>string</td>
<td>Call to Action.</td>
</tr><tr>
<td>$post_id</td>
<td>int</td>
<td>Post ID.</td>
</tr>
</tbody>
</table><h4>Usage</h4>
<pre>
add_filter( 'convertkit_output_restrict_content_call_to_action', function( $call_to_action, $post_id ) {
// ... your code here
// Return value
return $call_to_action;
}, 10, 2 );
</pre>
<h3 id="convertkit_output_page_takeover_landing_page_id">
convertkit_output_page_takeover_landing_page_id
<code>includes/class-convertkit-output.php::140</code>
Expand Down Expand Up @@ -1169,7 +1239,7 @@ add_filter( 'convertkit_is_admin_or_frontend_editor', function( $is_admin_or_fro
</pre>
<h3 id="convertkit_broadcasts_build_post_args">
convertkit_broadcasts_build_post_args
<code>includes/class-convertkit-broadcasts-importer.php::239</code>
<code>includes/class-convertkit-broadcasts-importer.php::247</code>
</h3><h4>Overview</h4>
<p>Define the wp_insert_post() compatible arguments for importing a ConvertKit Broadcast to a new WordPress Post.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -1200,7 +1270,7 @@ add_filter( 'convertkit_broadcasts_build_post_args', function( $post_args, $broa
</pre>
<h3 id="convertkit_broadcasts_parse_broadcast_content">
convertkit_broadcasts_parse_broadcast_content
<code>includes/class-convertkit-broadcasts-importer.php::292</code>
<code>includes/class-convertkit-broadcasts-importer.php::300</code>
</h3><h4>Overview</h4>
<p>Parses the given Broadcast's content, removing unnecessary HTML tags and styles.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -1231,7 +1301,7 @@ add_filter( 'convertkit_broadcasts_parse_broadcast_content', function( $content,
</pre>
<h3 id="convertkit_broadcasts_parse_broadcast_content_permitted_html_tags">
convertkit_broadcasts_parse_broadcast_content_permitted_html_tags
<code>includes/class-convertkit-broadcasts-importer.php::386</code>
<code>includes/class-convertkit-broadcasts-importer.php::394</code>
</h3><h4>Overview</h4>
<p>Define the HTML tags to retain in the Broadcast Content.</p><h4>Parameters</h4>
<table>
Expand Down
64 changes: 44 additions & 20 deletions languages/convertkit.pot
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Copyright (C) 2023 ConvertKit
# Copyright (C) 2024 ConvertKit
# This file is distributed under the same license as the ConvertKit plugin.
msgid ""
msgstr ""
"Project-Id-Version: ConvertKit 2.4.0\n"
"Project-Id-Version: ConvertKit 2.4.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-12-06T16:07:58+00:00\n"
"POT-Creation-Date: 2024-01-08T13:17:14+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.9.0\n"
"X-Domain: convertkit\n"
Expand Down Expand Up @@ -215,7 +215,7 @@ msgid "Settings"
msgstr ""

#: admin/class-convertkit-admin-settings.php:280
#: admin/section/class-convertkit-admin-settings-broadcasts.php:288
#: admin/section/class-convertkit-admin-settings-broadcasts.php:302
msgid "Beta"
msgstr ""

Expand Down Expand Up @@ -283,38 +283,46 @@ msgid "The category to assign imported broadcasts to."
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:241
msgid "Earliest Date"
msgid "Include Thumbnail"
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:248
msgid "If enabled, the Broadcast's thumbnail will be used as the WordPress Post's featured image."
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:255
msgid "Earliest Date"
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:262
msgid "The earliest date to import broadcasts from, based on the broadcast's published date and time."
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:254
#: admin/section/class-convertkit-admin-settings-broadcasts.php:268
msgid "Enable Export Actions"
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:261
#: admin/section/class-convertkit-admin-settings-broadcasts.php:275
msgid "Displays actions in WordPress to create draft broadcasts from existing WordPress posts."
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:267
#: admin/section/class-convertkit-admin-settings-broadcasts.php:281
msgid "Disable Styles"
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:274
#: admin/section/class-convertkit-admin-settings-broadcasts.php:288
msgid "Removes inline styles and layout when importing broadcasts and exporting posts."
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:289
#: admin/section/class-convertkit-admin-settings-broadcasts.php:303
msgid "Defines whether public broadcasts created in ConvertKit should automatically be published on this site as WordPress Posts, and whether to enable options to create draft ConvertKit Broadcasts from WordPress Posts."
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:345
#: admin/section/class-convertkit-admin-settings-broadcasts.php:359
msgid "Import now"
msgstr ""

#: admin/section/class-convertkit-admin-settings-broadcasts.php:413
#: admin/section/class-convertkit-admin-settings-broadcasts.php:427
#: admin/section/class-convertkit-settings-general.php:468
#: admin/section/class-convertkit-settings-general.php:518
#: includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php:143
Expand All @@ -341,7 +349,7 @@ msgstr ""
#: includes/blocks/class-convertkit-block-content.php:146
#: includes/blocks/class-convertkit-block-form-trigger.php:312
#: includes/blocks/class-convertkit-block-form.php:255
#: includes/blocks/class-convertkit-block-product.php:330
#: includes/blocks/class-convertkit-block-product.php:348
msgid "General"
msgstr ""

Expand Down Expand Up @@ -660,7 +668,7 @@ msgstr ""

#: includes/block-formatters/class-convertkit-block-formatter-product-link.php:134
#: includes/blocks/class-convertkit-block-product.php:115
#: includes/blocks/class-convertkit-block-product.php:288
#: includes/blocks/class-convertkit-block-product.php:296
msgid "Product"
msgstr ""

Expand Down Expand Up @@ -768,13 +776,13 @@ msgstr ""

#: includes/blocks/class-convertkit-block-broadcasts.php:343
#: includes/blocks/class-convertkit-block-form-trigger.php:283
#: includes/blocks/class-convertkit-block-product.php:301
#: includes/blocks/class-convertkit-block-product.php:319
msgid "Background color"
msgstr ""

#: includes/blocks/class-convertkit-block-broadcasts.php:347
#: includes/blocks/class-convertkit-block-form-trigger.php:287
#: includes/blocks/class-convertkit-block-product.php:305
#: includes/blocks/class-convertkit-block-product.php:323
msgid "Text color"
msgstr ""

Expand Down Expand Up @@ -842,12 +850,12 @@ msgid "The modal, sticky bar or slide in form to display when the button is pres
msgstr ""

#: includes/blocks/class-convertkit-block-form-trigger.php:275
#: includes/blocks/class-convertkit-block-product.php:293
#: includes/blocks/class-convertkit-block-product.php:301
msgid "Button Text"
msgstr ""

#: includes/blocks/class-convertkit-block-form-trigger.php:277
#: includes/blocks/class-convertkit-block-product.php:295
#: includes/blocks/class-convertkit-block-product.php:303
msgid "The text to display for the button."
msgstr ""

Expand Down Expand Up @@ -928,7 +936,23 @@ msgstr ""
msgid "Select a Product using the Product option in the Gutenberg sidebar."
msgstr ""

#: includes/blocks/class-convertkit-block-product.php:353
#: includes/blocks/class-convertkit-block-product.php:306
msgid "Discount Code"
msgstr ""

#: includes/blocks/class-convertkit-block-product.php:308
msgid "Optional: A discount code to include. Must be defined in the ConvertKit Product."
msgstr ""

#: includes/blocks/class-convertkit-block-product.php:311
msgid "Disable modal on mobile"
msgstr ""

#: includes/blocks/class-convertkit-block-product.php:313
msgid "Recommended if the ConvertKit Product is a digital download being purchased on mobile, to ensure the subscriber can immediately download the PDF once purchased."
msgstr ""

#: includes/blocks/class-convertkit-block-product.php:373
msgid "Buy my product"
msgstr ""

Expand Down Expand Up @@ -1013,7 +1037,7 @@ msgid "ConvertKit Landing Page ID %s does not exist on ConvertKit."
msgstr ""

#. translators: ConvertKit Product ID
#: includes/class-convertkit-resource-products.php:120
#: includes/class-convertkit-resource-products.php:138
msgid "ConvertKit Product ID %s does not exist on ConvertKit."
msgstr ""

Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: nathanbarry, growdev, travisnorthcutt, ggwicz
Donate link: https://convertkit.com
Tags: email marketing, email newsletter, newsletter, subscribers, membership
Requires at least: 5.0
Tested up to: 6.4.1
Tested up to: 6.4.2
Requires PHP: 5.6.20
Stable tag: 2.4.0
Stable tag: 2.4.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -156,6 +156,11 @@ Full Plugin documentation can be found [here](https://help.convertkit.com/en/art

== Changelog ==

### 2.4.1 2024-01-08
* Added: Broadcasts (Beta): Option to store ConvertKit Broadcast thumbnails as WordPress Post's Featured Image
* Added: Products: Block and Shortcode: Option to include a discount code
* Added: Products: Block and Shortcode: Option to disable modal on mobile. Recommended if the ConvertKit Product is a digital download (PDF) being purchased on mobile, to ensure the subscriber can immediately download the PDF once purchased.

### 2.4.0 2023-12-06
* Fix: ConvertKit Error: Could not load Plugin class `output` when editing, quick or bulk editing a Post.

Expand Down
4 changes: 2 additions & 2 deletions wp-convertkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: ConvertKit
* Plugin URI: https://convertkit.com/
* Description: Display ConvertKit email subscription forms, landing pages, products, broadcasts and more.
* Version: 2.4.0
* Version: 2.4.1
* Author: ConvertKit
* Author URI: https://convertkit.com/
* Text Domain: convertkit
Expand All @@ -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.4.0' );
define( 'CONVERTKIT_PLUGIN_VERSION', '2.4.1' );

// Load shared classes, if they have not been included by another ConvertKit Plugin.
if ( ! class_exists( 'ConvertKit_API' ) ) {
Expand Down

0 comments on commit 9fbd2a5

Please sign in to comment.