Skip to content
Merged

3.4.0 #1176

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 123 additions & 22 deletions ACTIONS-FILTERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
<td>&nbsp;</td>
<td><a href="#convertkit_get_form_importers"><code>convertkit_get_form_importers</code></a></td>
<td>Registers form importers for the ConvertKit Plugin.</td>
</tr><tr>
<td>&nbsp;</td>
<td><a href="#convertkit_abilities"><code>convertkit_abilities</code></a></td>
<td>Registers abilities for the Kit Plugin.</td>
</tr><tr>
<td colspan="3">includes/blocks/class-convertkit-block-content.php</td>
</tr><tr>
Expand Down Expand Up @@ -116,6 +120,12 @@
<td>&nbsp;</td>
<td><a href="#convertkit_block_form_render"><code>convertkit_block_form_render</code></a></td>
<td>Filter the block's content immediately before it is output.</td>
</tr><tr>
<td colspan="3">includes/blocks/helpers/class-convertkit-content-post-helper.php</td>
</tr><tr>
<td>&nbsp;</td>
<td><a href="#convertkit_content_post_helper_detect_page_builder"><code>convertkit_content_post_helper_detect_page_builder</code></a></td>
<td>Filters the detected page builder for a Post. Return a non-empty string (the page builder's name) to mark the Post as built with an unsupported page builder, causing the Content MCP abilities to return an error rather than writing to post_content.</td>
</tr><tr>
<td colspan="3">includes/blocks/class-convertkit-block-form-trigger.php</td>
</tr><tr>
Expand All @@ -128,6 +138,12 @@
<td>&nbsp;</td>
<td><a href="#convertkit_admin_notices_output_ notice"><code>convertkit_admin_notices_output_ notice</code></a></td>
<td>Define the text to output in an admin error notice.</td>
</tr><tr>
<td colspan="3">includes/class-convertkit-settings-mcp.php</td>
</tr><tr>
<td>&nbsp;</td>
<td><a href="#convertkit_settings_mcp_get_defaults"><code>convertkit_settings_mcp_get_defaults</code></a></td>
<td>The default settings, used when the ConvertKit MCP Settings haven't been saved e.g. on a new installation.</td>
</tr><tr>
<td colspan="3">includes/class-convertkit-post.php</td>
</tr><tr>
Expand Down Expand Up @@ -274,7 +290,7 @@
</tbody>
</table><h3 id="convertkit_settings_base_register_notices">
convertkit_settings_base_register_notices
<code>admin/section/class-convertkit-admin-section-base.php::208</code>
<code>admin/section/class-convertkit-admin-section-base.php::213</code>
</h3><h4>Overview</h4>
<p>Register success and error notices for settings screens.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -662,9 +678,36 @@ add_filter( 'convertkit_get_form_importers', function( $importers ) {
return $importers;
}, 10, 1 );
</pre>
<h3 id="convertkit_abilities">
convertkit_abilities
<code>includes/functions.php::347</code>
</h3><h4>Overview</h4>
<p>Registers abilities for the Kit Plugin.</p><h4>Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>$abilities</td>
<td>array</td>
<td>Abilities.</td>
</tr>
</tbody>
</table><h4>Usage</h4>
<pre>
add_filter( 'convertkit_abilities', function( $abilities ) {
// ... your code here
// Return value
return $abilities;
}, 10, 1 );
</pre>
<h3 id="convertkit_block_content_render">
convertkit_block_content_render
<code>includes/blocks/class-convertkit-block-content.php::295</code>
<code>includes/blocks/class-convertkit-block-content.php::320</code>
</h3><h4>Overview</h4>
<p>Filters the content in the ConvertKit Custom Content block/shortcode immediately before it is output.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -738,7 +781,7 @@ add_filter( 'convertkit_block_form_builder_field_render', function( $html, $atts
</pre>
<h3 id="convertkit_block_product_render">
convertkit_block_product_render
<code>includes/blocks/class-convertkit-block-product.php::437</code>
<code>includes/blocks/class-convertkit-block-product.php::453</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 @@ -769,7 +812,7 @@ add_filter( 'convertkit_block_product_render', function( $html, $atts ) {
</pre>
<h3 id="convertkit_block_broadcasts_render">
convertkit_block_broadcasts_render
<code>includes/blocks/class-convertkit-block-broadcasts.php::747</code>
<code>includes/blocks/class-convertkit-block-broadcasts.php::763</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 @@ -800,7 +843,7 @@ add_filter( 'convertkit_block_broadcasts_render', function( $html, $atts ) {
</pre>
<h3 id="convertkit_block_broadcasts_render_ajax">
convertkit_block_broadcasts_render_ajax
<code>includes/blocks/class-convertkit-block-broadcasts.php::661</code>
<code>includes/blocks/class-convertkit-block-broadcasts.php::677</code>
</h3><h4>Overview</h4>
<p>Filter the block's inner content immediately before it is output by AJAX, which occurs when pagination was clicked.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -831,7 +874,7 @@ add_filter( 'convertkit_block_broadcasts_render_ajax', function( $html, $atts )
</pre>
<h3 id="convertkit_block_broadcasts_build_html_list_item">
convertkit_block_broadcasts_build_html_list_item
<code>includes/blocks/class-convertkit-block-broadcasts.php::828</code>
<code>includes/blocks/class-convertkit-block-broadcasts.php::844</code>
</h3><h4>Overview</h4>
<p>Defines the HTML for an individual broadcast item in the Broadcasts block.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -897,7 +940,7 @@ add_filter( 'convertkit_block_form_builder_render', function( $html, $atts ) {
</pre>
<h3 id="convertkit_block_form_render">
convertkit_block_form_render
<code>includes/blocks/class-convertkit-block-form.php::469</code>
<code>includes/blocks/class-convertkit-block-form.php::485</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 @@ -930,9 +973,40 @@ add_filter( 'convertkit_block_form_render', function( $form, $atts, $form_id ) {
return $form;
}, 10, 3 );
</pre>
<h3 id="convertkit_content_post_helper_detect_page_builder">
convertkit_content_post_helper_detect_page_builder
<code>includes/blocks/helpers/class-convertkit-content-post-helper.php::279</code>
</h3><h4>Overview</h4>
<p>Filters the detected page builder for a Post. Return a non-empty string (the page builder's name) to mark the Post as built with an unsupported page builder, causing the Content MCP abilities to return an error rather than writing to post_content.</p><h4>Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>Detected</td>
<td>string|false $page_builder</td>
<td>page</td>
</tr><tr>
<td>$post_id</td>
<td>int</td>
<td>Post ID.</td>
</tr>
</tbody>
</table><h4>Usage</h4>
<pre>
add_filter( 'convertkit_content_post_helper_detect_page_builder', function( false, $post_id ) {
// ... your code here
// Return value
return false;
}, 10, 2 );
</pre>
<h3 id="convertkit_block_form_trigger_render">
convertkit_block_form_trigger_render
<code>includes/blocks/class-convertkit-block-form-trigger.php::381</code>
<code>includes/blocks/class-convertkit-block-form-trigger.php::397</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 @@ -988,6 +1062,33 @@ add_filter( 'convertkit_admin_notices_output_ notice', function( $output ) {
return $output;
}, 10, 1 );
</pre>
<h3 id="convertkit_settings_mcp_get_defaults">
convertkit_settings_mcp_get_defaults
<code>includes/class-convertkit-settings-mcp.php::109</code>
</h3><h4>Overview</h4>
<p>The default settings, used when the ConvertKit MCP Settings haven't been saved e.g. on a new installation.</p><h4>Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>$defaults</td>
<td>array</td>
<td>Default settings.</td>
</tr>
</tbody>
</table><h4>Usage</h4>
<pre>
add_filter( 'convertkit_settings_mcp_get_defaults', function( $defaults ) {
// ... your code here
// Return value
return $defaults;
}, 10, 1 );
</pre>
<h3 id="convertkit_post_settings">
convertkit_post_settings
<code>includes/class-convertkit-post.php::85</code>
Expand Down Expand Up @@ -1079,7 +1180,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::225</code>
<code>includes/class-convertkit-settings-broadcasts.php::327</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 All @@ -1106,7 +1207,7 @@ add_filter( 'convertkit_settings_broadcasts_get_defaults', function( $defaults )
</pre>
<h3 id="convertkit_settings_restrict_content_get_defaults">
convertkit_settings_restrict_content_get_defaults
<code>includes/class-convertkit-settings-restrict-content.php::150</code>
<code>includes/class-convertkit-settings-restrict-content.php::282</code>
</h3><h4>Overview</h4>
<p>The default settings, used when the ConvertKit Restrict Content Settings haven't been saved e.g. on a new installation.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -1640,7 +1741,7 @@ add_filter( 'convertkit_output_script_footer', function( $script ) {
</pre>
<h3 id="convertkit_settings_get_defaults">
convertkit_settings_get_defaults
<code>includes/class-convertkit-settings.php::710</code>
<code>includes/class-convertkit-settings.php::874</code>
</h3><h4>Overview</h4>
<p>The default settings, used when the ConvertKit Plugin Settings haven't been saved e.g. on a new installation.</p><h4>Parameters</h4>
<table>
Expand All @@ -1667,7 +1768,7 @@ add_filter( 'convertkit_settings_get_defaults', function( $defaults ) {
</pre>
<h3 id="convertkit_is_admin_or_frontend_editor">
convertkit_is_admin_or_frontend_editor
<code>includes/class-wp-convertkit.php::339</code>
<code>includes/class-wp-convertkit.php::387</code>
</h3><h4>Overview</h4>
<p>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.</p><h4>Parameters</h4>
<table>
Expand Down Expand Up @@ -2024,7 +2125,7 @@ do_action( 'convertkit_settings_base_render_after', function( ) {
</pre>
<h3 id="convertkit_settings_base_render_before">
convertkit_settings_base_render_before
<code>admin/section/class-convertkit-admin-section-tools.php::380</code>
<code>admin/section/class-convertkit-admin-section-tools.php::360</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand All @@ -2044,7 +2145,7 @@ do_action( 'convertkit_settings_base_render_before', function( ) {
</pre>
<h3 id="convertkit_settings_base_render_after">
convertkit_settings_base_render_after
<code>admin/section/class-convertkit-admin-section-tools.php::403</code>
<code>admin/section/class-convertkit-admin-section-tools.php::383</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand Down Expand Up @@ -2104,7 +2205,7 @@ do_action( 'convertkit_settings_base_render_after', function( ) {
</pre>
<h3 id="convertkit_settings_base_render_before">
convertkit_settings_base_render_before
<code>admin/section/class-convertkit-admin-section-base.php::243</code>
<code>admin/section/class-convertkit-admin-section-base.php::248</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand All @@ -2124,7 +2225,7 @@ do_action( 'convertkit_settings_base_render_before', function( ) {
</pre>
<h3 id="convertkit_settings_base_render_after">
convertkit_settings_base_render_after
<code>admin/section/class-convertkit-admin-section-base.php::258</code>
<code>admin/section/class-convertkit-admin-section-base.php::263</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand All @@ -2144,7 +2245,7 @@ do_action( 'convertkit_settings_base_render_after', function( ) {
</pre>
<h3 id="convertkit_settings_base_sanitize_settings">
convertkit_settings_base_sanitize_settings
<code>admin/section/class-convertkit-admin-section-base.php::930</code>
<code>admin/section/class-convertkit-admin-section-base.php::935</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand Down Expand Up @@ -2564,7 +2665,7 @@ do_action( 'convertkit_output_landing_page_before', function( $landing_page, $la
</pre>
<h3 id="convertkit_initialize_admin">
convertkit_initialize_admin
<code>includes/class-wp-convertkit.php::106</code>
<code>includes/class-wp-convertkit.php::107</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand All @@ -2584,7 +2685,7 @@ do_action( 'convertkit_initialize_admin', function( ) {
</pre>
<h3 id="convertkit_initialize_admin_or_frontend_editor">
convertkit_initialize_admin_or_frontend_editor
<code>includes/class-wp-convertkit.php::127</code>
<code>includes/class-wp-convertkit.php::128</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand All @@ -2604,7 +2705,7 @@ do_action( 'convertkit_initialize_admin_or_frontend_editor', function( ) {
</pre>
<h3 id="convertkit_initialize_cli_cron">
convertkit_initialize_cli_cron
<code>includes/class-wp-convertkit.php::148</code>
<code>includes/class-wp-convertkit.php::149</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand All @@ -2624,7 +2725,7 @@ do_action( 'convertkit_initialize_cli_cron', function( ) {
</pre>
<h3 id="convertkit_initialize_frontend">
convertkit_initialize_frontend
<code>includes/class-wp-convertkit.php::173</code>
<code>includes/class-wp-convertkit.php::174</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand All @@ -2644,7 +2745,7 @@ do_action( 'convertkit_initialize_frontend', function( ) {
</pre>
<h3 id="convertkit_initialize_global">
convertkit_initialize_global
<code>includes/class-wp-convertkit.php::218</code>
<code>includes/class-wp-convertkit.php::220</code>
</h3><h4>Parameters</h4>
<table>
<thead>
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 3.4.0 2026-08-27
* Added: MCP Server and Abilities/Tools
* Fix: Shortcodes: Custom Content: Support signed subscriber IDs, fixing `PHP Fatal error: Uncaught TypeError`
* Fix: Tools: Replace `WP_Filesystem` with `file_get_contents`, fixing `PHP Fatal error: Uncaught TypeError`
* Fix: Logs: Logs are now stored outside the Plugin folder at `wp-content/uploads/kit-logs`, ensuring Plugin checksum verification passes
* Updated: WordPress Libraries to 2.6.1

### 3.3.9 2026-08-19
* Added: Settings: Deprecation warning when using Legacy Form or Legacy Landing Page
* Added: Setup Wizards: Member Content: Check WordPress user can create and publish the chosen Post Type
Expand Down
Loading