[wp-trac] [WordPress Trac] #34009: Need ability to query what post_type_supports values plugins and themes might use
WordPress Trac
noreply at wordpress.org
Sat Sep 20 10:21:15 UTC 2025
#34009: Need ability to query what post_type_supports values plugins and themes
might use
-------------------------------------+------------------------------
Reporter: bobbingwide | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: close reporter-feedback | Focuses:
-------------------------------------+------------------------------
Changes (by SirLouen):
* keywords: needs-patch => close reporter-feedback
* version: 4.4 =>
Comment:
I don't really get the utility of this idea
I'm going to try to recap:
We currently have `get_all_post_type_supports` which returns all the post
type supports including those added from plugins. The only thing is that
they don't have "pretty" text faces, but given that this is a very cody-
feature I don't really think its totally necessary, unless I'm missing
some important thing
Looking through the patch `34009.patch` what I can see is that you are
simply redifining `get_all_post_type_supports` with that "pretty texts"
for each of the support in an array to return the same as the current
function, but in the pretty format. The reality is that when you want to
use such supports, you are going to need the key, not the pretty value
So personally unless it can be better explained to me why this
`get_all_post_type_supports_features` provides any value over simply using
`get_all_post_type_supports`, this is a `close` for me, `wontfix`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34009#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list