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

Comments: Add a REST API endpoint for comment types#60
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 CLIGive 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

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d5298251-a4d8-42a8-a9cd-bd1ca766ac71

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fcc/rest-comment-types

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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