When you take a look at wp-admin/edit.php
, you’ll see that this string is printed with this line:
echo esc_html( $post_type_object->labels->name );
So there is no filter to modify it in edit.php
.
There are no filters in get_post_type_object
also, so we can’t change it in there too, but…
The object for given post type is stored in global variable called $wp_post_types
, so you can modify it:
function change_page_post_type_object() {
global $wp_post_types;
$wp_post_types['page']->labels->name="Not-Pages ;)";
}
add_action( 'init', 'change_page_post_type_object' );
And that’s the result:
Related Posts:
- Filter by custom field in custom post type on admin page
- How can I filter posts by post_parent in the admin?
- Filter by custom Field for Custom post type Admin Listing
- Unable to filter on field on edit.php page
- Filters post in admin with dropdown select, custom post type
- How can I add a column in the wp_list_table of the admin area?
- Add html to cpt main page / admin edit.php
- Filtering posts list table
- sortable columns for multiple custom post types not working
- Is there any filter to add a custom attribute to the tag in admin panel?
- Help Adding filter to Add Media button for custom post type
- Customize Edit Post screen for Custom Post Types?
- How can I remove the “Add New” button in my custom post type?
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Multiple custom post types under one admin menu
- How can I change the admin search posts fields?
- Custom post type: Add “Edit | Quick Edit | Trash | View” links to date (if title is not shown in column)?
- How to remove Filters from post admin page?
- Adding a drag and drop re-ordering from a custom post type default list [closed]
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- How do I filter the excerpt metabox description in admin?
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- Create a dropdown with Custom Post Types as option in admin
- Filter admin columns by custom post field value
- Is it OK to move admin menu items?
- WP Admin default view mode for Custom Post Type
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Remove wpautop from all posts/pages except my custom post type
- Remove date and category filters when editing custom post types
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- Make the ‘all’ filter default instead of ‘mine’ in a custom post type
- How to get search results in the backend admin on a custom post type?
- Exclude custom function content from certain pages
- Filter get_categories() for taxonomy term in WordPress
- Debug output during filter execution doesn’t work
- Multiple post types in archives (filter?)
- Highlight nav menu terms
- Want to filter only parent post in admin area
- No results searching custom post type in admin panel
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Change admin post thumbnail size for custom post type only
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- WordPress User Roles, Custom Post Types, and Admin views
- Add $more_link_text parameter to the_excerpt()
- Using WPAlchemy metabox values in another metabox
- Custom Taxonomy breaking pages permalinks
- How to customize admin posts based on the user who is logged in
- Set a default category – if the user didn’t select one- before creating a post
- Filter categories of posts with checkboxes
- How can I create a custom meta box to add an mp4 video to a page?
- WooCommerce product search titles only
- Remove rows in the manage post/page view
- Custom query to filter posts that have current post as a taxonomy [closed]
- Access $post object when adding custom columns to list table
- Setting proper query for multiple custom admin filters
- Add acf field in title (admin table)
- Append date to custom post type url slug
- Genesis filterable portfolio isotope [closed]
- How can I see a list of my Custom Post Types of the last term I was in?
- Get parse_query filter to return slug instead of id
- filter custom post type by meta key in dashboard
- Custom admin post.php page
- Categories of custom taxonomy don’t show any posts
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- How to add a post slug to a url?
- How to filter wp_list_categories output with some custom post type meta query?
- creat filter with wp_query
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Categories filtering in new post
- Custom post type isn’t working
- Add a ‘guide’ image to custom post type admin page
- Filter posts by tax (dropdown) and meta value
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- How to check if post/page or taxonomy post is published by admin
- Linking to Post Types from wp-admin
- How do I add custom HTML to the content of an archive page’s posts?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Modifying WP_Title For Custom Post Type
- Catch and display error on save_post action
- Is there a hook between clicking on “Add new” and the edit screen of a new post?
- WordPress admin for a custom post, hide/collapse the main “title” and “description” boxes
- Is possible register two archive pages for single custom post type?
- custom filtering admin columns
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Display category filters for custom post type when category is shared by multiple post types
- Create Post Types from a XML url (Real Estate website)
- Post Click Redirect to Custom URL instead of Single Post Page
- How to hide private posts even if user is admin
- Create an administation subpage containing posts in a certain category
- Keep br tags from stripping
- Add filter button to custom post type in admin area
- Adding Information To All Posts Screen
- Filter Content on all Post Types
- Exclude categories For Custom post types
- Custom Search Template for Custom Post Types
- Collection of fields in a single post
- Display read only info on admin, custom post page
- Rewrite a filter as shortcode (or something like that) to use anywhere in CPT
- add_filter > posts_where works partially
- Admin menu link with variable