Opened 11 years ago
Closed 14 months ago
#35097 closed enhancement (wontfix)
New filter: `edit_post_type_title`
| Reported by: | sebastian.pisula | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch 2nd-opinion |
| Cc: | Focuses: |
Description
Filter in edit.php to filter title. Why ?
I filter this page by term and I want have title of current term
edit.php?post_type=investor-day&funds-categories=title
Attachments (1)
Change History (7)
#3
@
11 years ago
- I can't because taxonomy not exists yet. I use
get_term_byand this function returnfalse. - Because I want filter title in page with posts list.
#4
@
11 years ago
A workaround:
function wp35097_change_post_type_title_on_edit_screen() {
global $post_type_object;
$post_type_object->labels->name = 'My Custom Name';
}
add_action( 'admin_head-edit.php', 'wp35097_change_post_type_title_on_edit_screen' );
Note:
See TracTickets
for help on using tickets.
Hi there
Two questions:
post_type_labels_{$post_type}filter help here?edit.php? What about editing terms?