[wp-trac] [WordPress Trac] #38218: Introduce a WP_Post_Type_Labels class
WordPress Trac
noreply at wordpress.org
Thu Sep 13 06:53:26 UTC 2018
#38218: Introduce a WP_Post_Type_Labels class
------------------------------------------+-----------------------------
Reporter: swissspidy | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------------
Comment (by dontgo2sleep):
@swissspidy I got your point about the adoption of such as feature.
What bothers me is that I am not quite sure about the technical
implementation. What is your exact idea about the callback? What I
understand is WP_Post_Type object to have property labels pointing to
function returning an array of labels and called on demand by
WP_Post_Type_Labels::__get() method?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38218#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list