[wp-trac] [WordPress Trac] #37667: Handle post type support in `WP_Post_Type`
WordPress Trac
noreply at wordpress.org
Thu Aug 18 13:33:30 UTC 2016
#37667: Handle post type support in `WP_Post_Type`
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Posts, Post Types | Review
Severity: normal | Version: 4.6
Keywords: has-patch 2nd-opinion needs-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by swissspidy):
@flixos90 `wp_oembed_add_provider()` and
`WP_oEmbed::_add_provider_early()` come to mind.
If the post type doesn't exist yet, the feature could still be added to
the global and upon post type registration it would be taken out of there
and added to the actual post type object.
Adding a return value wouldn't help much as developers don't check them
since it's a void function. A `_doing_it_wrong()` could be triggered so
that eventually we might get rid of the global array in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37667#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list