Skip to content

Posts: Replace wordpress/posts with v4/posts endpoint - #130

Draft
n7studios wants to merge 2 commits into
mainfrom
use-v4-api-posts-endpoint
Draft

Posts: Replace wordpress/posts with v4/posts endpoint#130
n7studios wants to merge 2 commits into
mainfrom
use-v4-api-posts-endpoint

Conversation

@n7studios

Copy link
Copy Markdown
Contributor

Summary

Removes the overrides in ConvertKit_API_V4 for get_posts() and get_post() that would query the private wordpress/posts endpoint.

Calls to get_posts() and get_post() methods are now handled by the ConvertKit_API_Traits trait, which queries the v4/posts endpoint.

This mirrors the PHP SDK.

Testing

Removed the test overrides in APINoDataTest and APITest. Tests responsible for get_posts() and get_post() are now handled by the TestsTrait.

Again, this mirrors the PHP SDK.

Checklist

…st() tests

TestsTrait from the PHP SDK now contain the tests, as get_posts() and get_post() use the `v4/posts` endpoint, replacing the `wordpress/posts` endpoint
@n7studios n7studios added this to the 2.6.2 milestone Sep 2, 2026
@n7studios n7studios self-assigned this Sep 2, 2026
@n7studios n7studios added the enhancement New feature or request label Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant