Skip to content

Comments: Add a REST API endpoint for comment types - #60

Draft
adamsilverstein wants to merge 1 commit into
fcc/register-comment-typefrom
fcc/rest-comment-types
Draft

adamsilverstein wants to merge 1 commit into
fcc/register-comment-typefrom
fcc/rest-comment-types

Conversation

@adamsilverstein

Copy link
Copy Markdown
Owner

Add a read-only WP_REST_Comment_Types_Controller (/wp/v2/comment-types and
/wp/v2/comment-types/{type}) mirroring the post-types controller, plus a
show_in_rest flag on registered comment types (cascading from public), so
clients can discover registered types and their labels.

Rebuilt from #51 as
part of a stacked-PR trial.

Trac ticket: https://core.trac.wordpress.org/ticket/35214


Stack created with GitHub Stacks CLI • Give Feedback 💬

Add a read-only WP_REST_Comment_Types_Controller (/wp/v2/comment-types and
/wp/v2/comment-types/{type}) mirroring the post-types controller, plus a
show_in_rest flag on registered comment types (cascading from public), so
clients can discover registered types and their labels.

Rebuilt from #51 as
part of a stacked-PR trial.

Trac ticket: https://core.trac.wordpress.org/ticket/35214
@coderabbitai

coderabbitai Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
Finishing Touches

🧪 Generate unit tests (beta)

  • Create PR with unit tests
  • Commit unit tests in branch fcc/rest-comment-types
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@adamsilverstein
adamsilverstein added this pull request to stack #68 November 8, 2026 14:12
@adamsilverstein
adamsilverstein removed this pull request from stack #68 November 8, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant