Skip to content

Abilities API: Shortcode Support#1100

Open
n7studios wants to merge 16 commits into
abilities-apifrom
abilities-api-content-shortcode-support
Open

Abilities API: Shortcode Support#1100
n7studios wants to merge 16 commits into
abilities-apifrom
abilities-api-content-shortcode-support

Conversation

@n7studios

Copy link
Copy Markdown
Contributor

Summary

Adds the ConvertKit_Shortcode_Post_Helper to support inserting, updating and deleting Kit elements (Forms, Form Triggers, Broadcasts, Products) as shortcodes from WordPress Pages and Posts.

Removes the index parameter, as this isn't used.

Testing

  • ShortcodePostHelperTest: Unit test inserting, updating and deleting Kit shortcodes from WordPress content.

Checklist

@n7studios n7studios added this to the 3.4.0 milestone May 25, 2026
@n7studios n7studios self-assigned this May 25, 2026
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team May 27, 2026 03:36
@n7studios n7studios marked this pull request as ready for review May 27, 2026 03:36

@noelherrick noelherrick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense - I'm curious why you decided to go with regex matching of the HTML vs. using an HTML parsing library, specifically in get_element_offsets. Unless there's a strong reason against that, I would use real parsing.

Comment thread includes/blocks/helpers/class-convertkit-shortcode-post-helper.php Outdated
Comment thread includes/blocks/helpers/class-convertkit-shortcode-post-helper.php
@n7studios n7studios changed the base branch from abilities-api-restructure to abilities-api June 11, 2026 13:45
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested a review from noelherrick June 11, 2026 16:42
@n7studios n7studios requested a review from ciccio-kit June 11, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants