Opened 10 years ago
Closed 3 months ago
#35097 closed enhancement (wontfix)
New filter: `edit_post_type_title`
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | has-patch 2nd-opinion |
| Focuses: | Cc: |
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
@
10 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
@
10 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?