[wp-trac] [WordPress Trac] #17447: Add 'register_post_type_args' hook
WordPress Trac
noreply at wordpress.org
Wed Sep 16 15:56:41 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: has-patch dev-feedback | Focuses:
------------------------------------+-----------------------------
Comment (by swissspidy):
Replying to [comment:40 MikeSchinkel]:
> For example, I might need ''"Post"'' to be labeled ''"Story"'' or
''"Article."''
There's the
[https://developer.wordpress.org/reference/hooks/post_type_labels_post_type/
post_type_labels] hook for that.
> Or I might need to add additional ''"supports"'' attributes to
''"Post"'' and ''"Page."''
You can use `add_post_type_support` for that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17447#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list