[wp-trac] [WordPress Trac] #29009: There should be a capability for "publish private posts"
WordPress Trac
noreply at wordpress.org
Fri Sep 19 16:06:53 UTC 2025
#29009: There should be a capability for "publish private posts"
-----------------------------+-----------------------------
Reporter: t.schwarz | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Role/Capability | Version: 3.9.1
Severity: normal | Resolution: wontfix
Keywords: | Focuses: administration
-----------------------------+-----------------------------
Changes (by mindctrl):
* keywords: dev-feedback close =>
* status: reopened => closed
* resolution: => wontfix
Comment:
Hi all,
I'm not sure a new capability like `publish_private_posts` is the right
move, since capabilities indicate what you are able to do, not what you
are forced to do.
It's possible to filter the post data before it's saved to change the
`post_status` to `private`. One way you can do this is via the
`wp_insert_post_data` filter, and in your callback function you can run
some conditional logic to determine if you want to enforce the private
status.
It's been over a decade since this ticket was opened and there hasn't been
any movement. I'm going to close this ticket to help clean up Trac, but
feel free to continue discussion or reopen if you think this is essential
for WordPress.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29009#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list