Skip to content

Comments: Add a capabilities object to comment types - #61

Draft
adamsilverstein wants to merge 2 commits into
fcc/rest-comment-typesfrom
fcc/comment-type-caps
Draft

adamsilverstein wants to merge 2 commits into
fcc/rest-comment-typesfrom
fcc/comment-type-caps

Conversation

@adamsilverstein

Copy link
Copy Markdown
Owner

Add capability_type / capabilities args to register_comment_type(), a
WP_Comment_Type::$cap object, and a get_comment_type_capabilities() helper
mirroring get_post_type_capabilities(). Advisory metadata only in this step:
map_meta_cap() is deliberately unchanged, so there is no behavior change.

Rebuilt from #52 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 capability_type / capabilities args to register_comment_type(), a
WP_Comment_Type::$cap object, and a get_comment_type_capabilities() helper
mirroring get_post_type_capabilities(). Advisory metadata only in this step:
map_meta_cap() is deliberately unchanged, so there is no behavior change.

Rebuilt from #52 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/comment-type-caps
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@adamsilverstein adamsilverstein added duplicate comment-types Custom comment types stack (Trac #35214) labels Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comment-types Custom comment types stack (Trac #35214) duplicate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant