[wp-trac] [WordPress Trac] #36734: Filter for preview button
WordPress Trac
noreply at wordpress.org
Mon Nov 23 05:56:26 UTC 2020
#36734: Filter for preview button
-------------------------------+---------------------------------
Reporter: mitogh | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: ui, administration
-------------------------------+---------------------------------
Changes (by noisysocks):
* keywords: => 2nd-opinion
* component: Editor => Posts, Post Types
Comment:
Hi @mitogh. This is possible at the post type level by setting
`publicly_queryable` to `false`. Does this not suit your use case?
I don't think it makes sense to hide the Preview button but still allow
previewing. Setting `publicly_queryable` to `false` will properly disable
both.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36734#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list