Abilities API: Post Settings#1143
Open
n7studios wants to merge 1 commit into
Open
Conversation
n7studios
commented
Jul 22, 2026
| public static function get_server_url() { | ||
|
|
||
| return rest_url( self::SERVER_NAMESPACE . '/' . self::SERVER_ROUTE . '/mcp' ); | ||
| return rest_url( self::SERVER_NAMESPACE . '/' . self::SERVER_ROUTE ); |
Contributor
Author
There was a problem hiding this comment.
This shouldn't have /mcp appended to it - not sure how this was added in an earlier PR.
WordPress Playground🚀 Your PR has been built and is ready for testing in WordPress Playground! |
n7studios
requested review from
a team,
ciccio-kit and
noelherrick
and removed request for
a team
July 22, 2026 12:54
n7studios
marked this pull request as ready for review
July 22, 2026 12:54
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
Registers get and update abilities (MCP tools) for the per-Post Kit settings (Form, Landing Page, Tag, Member Content / Restrict Content) stored in the
_wp_convertkit_post_metapost meta, so an MCP client can fetch and update these settings for any Post, Page or Custom Post Type. Partial updates are supported; the Restrict Content cache stays in sync automatically via the existingupdated_post_metahook.Testing
MCPPostSettingsGetTest: Tests that the MCP tool is registered, permissions are honored (edit_postcapability required), defaults are returned when no post meta exists, stored values are returned when set, non-existent post IDs are rejected, and the tool works across post types (Post, Page).MCPPostSettingsUpdateTest: Tests that the MCP tool is registered, full and partial updates persist correctly, unknown keys and malformedform/restrict_contentvalues are rejected, empty input is rejected, non-existent post IDs are rejected, the update → get round-trip returns the updated values, and setting or clearingrestrict_contentcorrectly populates or removes the Post from the Restrict Content cache.Checklist