Skip to content

Conversation

@n7studios
Copy link
Contributor

Summary

Updates the ConvertKit_Resource_V4 class to:

  • Return the result of $this->refresh() in init()
  • Return a WP_Error when refresh() is called without an API client being specified

This allows the Plugins calling this class to decide how to handle the WP_Error.

Testing

Existing tests pass.

Checklist

@n7studios n7studios self-assigned this Nov 27, 2025
@n7studios n7studios added the enhancement New feature or request label Nov 27, 2025
@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team November 27, 2025 15:20
@n7studios n7studios marked this pull request as ready for review November 27, 2025 15:20
@n7studios n7studios merged commit 44e99e5 into main Dec 2, 2025
20 of 23 checks passed
@n7studios n7studios deleted the return-refresh-result branch December 5, 2025 06:55
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.

3 participants