WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#19739 new enhancement

Filter to override exit for comments on drafts (comment_on_draft)

Reported by: cyberhobo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.3
Component: Comments Keywords: dev-feedback has-patch
Focuses: Cc:

Description

I'd like to use comments on draft posts as part of an editorial workflow. Will this be as easy as adding a filter to fire before the current comment_on_draft action that can be checked before exiting? I'll try that and add a patch if it looks good.

Related #13276. Not relevant to #18630, I think.

Attachments (1)

19739.diff (769 bytes) - added by cyberhobo 2 years ago.
Added a post id parameter and similar filter for comments on trashed posts.

Download all attachments as: .zip

Change History (2)

cyberhobo2 years ago

Added a post id parameter and similar filter for comments on trashed posts.

comment:1 cyberhobo2 years ago

  • Keywords has-patch added

My simple solution seems to work for my use case.

Version 0, edited 2 years ago by cyberhobo (next)
Note: See TracTickets for help on using tickets.