#21948 closed enhancement (fixed)
Allow filtering post type labels
Reported by: | scribu | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch commit needs-codex |
Focuses: | Cc: |
Description (last modified by )
Follow-up from #21944
22:49 <nacin> just needs a filter in get_post_type_labels() 22:51 <nacin> there's a separate API for basically everything else - query variables, rewrite rules, supports, taxonomies, meta boxes, menus
Attachments (4)
Change History (15)
#5
@
12 years ago
21948.2.diff introduces "post_type_labels_{$post_type}" instead, since you'll have a specific set of post types that you'll want to target.
#6
@
12 years ago
+1 for 21948.2.diff
#7
@
12 years ago
+1 to this idea.
My Custom Post Type Editor plugin currently has to override CPT labels after a CPT is registered by using the registered_post_type
hook.
A filter before each CPT is registered would be much better.
#9
@
12 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In [22164]:
#11
@
12 years ago
- Keywords needs-codex added
New filter [22164]:
- post_type_labels_{$post_type}
Note: See
TracTickets for help on using
tickets.
21948.diff introduces the 'post_type_labels' filter.
pancakes.php shows one potential usage.