[wp-trac] [WordPress Trac] #40413: Handle `register_post_type` support's array
WordPress Trac
noreply at wordpress.org
Tue Apr 11 11:03:52 UTC 2017
#40413: Handle `register_post_type` support's array
-------------------------------+------------------------------
Reporter: MaximeCulea | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------------+------------------------------
Changes (by MaximeCulea):
* keywords: => has-patch
Comment:
So, as I think this behaviour of giving to a support some more extra
features is cool, I submit a patch in this direction.
Now from `register_post_type` you could register a support with extra args
as following :
{{{ <?php register_post_type( 'post_type', [ 'supports' => [ 'support' =>
[ extra_1, extra_2 ] ] ] ); }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40413#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list