[wp-trac] [WordPress Trac] #23207: Add $labels argument to register_post_status()
WordPress Trac
noreply at wordpress.org
Sun Oct 5 11:05:18 UTC 2014
#23207: Add $labels argument to register_post_status()
-------------------------------------------------+-------------------------
Reporter: ramiy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Posts, Post Types | Review
Severity: normal | Version: 3.0
Keywords: editorial-flow has-patch dev- | Resolution:
feedback | Focuses:
-------------------------------------------------+-------------------------
Changes (by theorboman):
* keywords: editorial-flow needs-patch => editorial-flow has-patch dev-
feedback
Comment:
Here's a patch for the above. The diff adds an optional $labels parameter
to
{{{
register_post_status()
}}}
$labels is an associative array which expects the keys 'name' and 'count'
which (if present) will be used in place of the 'label' and 'label_count'
arguments respectively.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23207#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list