[wp-trac] [WordPress Trac] #40413: Handle `register_post_type` support's array
WordPress Trac
noreply at wordpress.org
Thu Sep 19 21:48:14 UTC 2019
#40413: Handle `register_post_type` support's array
-------------------------------------------------+-------------------------
Reporter: MaximeCulea | Owner: desrosj
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.3
Component: Posts, Post Types | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note |
-------------------------------------------------+-------------------------
Comment (by pbiron):
Replying to [comment:19 desrosj]:
> I am not too sure on the example being valid inline like that, though.
[https://core.trac.wordpress.org/attachment/ticket/40413/rpt-docblock.png
rpt-docblock.png] is what the `$supports` param will look like in the Code
Reference (if you mean the example in the DocBlock of
`add_post_type_support()` just let me know, and I'll upload a screenshot
of that as well).
Note: that screenshot comes from a a plugin I use to generate code
references for plugins...that uses the same tools as .org uses for the WP
Code Reference (altho the theme is closer to Twenty Seventeen, so it may
look ''slightly'' different, but it's close enough).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40413#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list