Repository navigation
Conversation
6 of 9 tasks
n7studios
marked this pull request as ready for review
November 11, 2026 07:46
n7studios
requested review from
a team,
ciccio-kit and
noelherrick
and removed request for
a team
November 11, 2026 07:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
ConvertKit_App_Serverclass, so Kit WordPress Plugins can connect through the Kit WP App Server and work as Kit App Store apps. Kit for WooCommerce is the first Plugin to use it.The class provides:
get_redirect_uri(),get_connect_url()andget_complete_url(): the App Server URLs for the Kit OAuth connect and install flow.allowed_redirect_hosts(): letswp_safe_redirect()redirect to the App Server.register_site()andunregister_site(): register the site with the App Server on connect, including the one-time registration token the App Server sends with the authorization code, and unregister it on disconnect.heartbeat(): tells the App Server the site is still active.send_automation_event(): sends automation events (e.g. abandoned checkout, product purchased) to the App Server, which passes them on to Kit.Each request includes the Plugin, WordPress and dependency versions passed to the constructor. Requests authenticate with the site secret returned by
register_site(). A failed request, or a response with an unexpected status code, returns aWP_Errorthat includes the HTTP status.Testing
AppServerTestcovers the URLs, allowed redirect hosts, registering (with and without a registration token), unregistering, heartbeat, automation events (with and without context), the versions sent with each request, and unexpected response codes.Checklist