[wp-trac] [WordPress Trac] #17447: Add 'register_post_type_args' hook
WordPress Trac
noreply at wordpress.org
Thu Sep 24 15:08:13 UTC 2015
#17447: Add 'register_post_type_args' hook
-------------------------------+-----------------------------
Reporter: mikeschinkel | Owner: SergeyBiryukov
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.4
Component: Posts, Post Types | Version: 3.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------------+-----------------------------
Changes (by johnbillion):
* keywords: has-patch dev-feedback => needs-patch
* status: closed => reopened
* resolution: fixed =>
Comment:
You would have to be a fruitcake to do it, but the `$args` parameter in
`register_post_type()` can actually be a query string as well as an array
(thanks to `wp_parse_args()`).
This somewhat complicates usage of the `register_post_type_args` filter,
which would be much less fragile if it only had to deal with an array.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17447#comment:57>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list