#21948 closed enhancement (fixed)
Allow filtering post type labels
| Reported by: | scribu | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch commit needs-codex |
| Cc: | Focuses: |
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
@
14 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
@
14 years ago
+1 for 21948.2.diff
#7
@
14 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.
#11
@
14 years ago
- Keywords needs-codex added
New filter [22164]:
- post_type_labels_{$post_type}
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
21948.diff introduces the 'post_type_labels' filter.
pancakes.php shows one potential usage.