I think the issue is this piece of code $messages['game'] = $messages['post'];. $messages will contains all the updated messages for all custom post type. In this case, your CPT is game, so you should change the array item of game only.
The correct code should be
public function game_updated_messages( $messages )
{
$messages['game'][1] = 'Post updated.';
$messages['game'][6] = 'Post published.';
return $messages;
}
You can try to dump the variable $messages and see all the result it returns.
Related Posts:
- Where to put my code: plugin or functions.php?
- Should I use custom post types or a custom database tables for plugin development?
- Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?
- Using add_theme_support inside a plugin
- The Great Plugin Nomenclature Contest of 2011
- How to completely disable a taxonomy archive on the frontend?
- How do you create an archive for a custom post type from a plugin?
- How to set a fall back template for a custom post type in a plugin?
- How to add multiple images to custom post type?
- wordpress plugin error handling
- How to get term link that crosses different custom post types?
- Redirect after deleting post and keep track of pagination
- get_edit_post_link() not working as expected when passed id in plugin
- Where to put archive-{post-type}.php
- How do I Make a custom post type get a custom post template in a plugin
- WordPress metabox file upload in custom post [duplicate]
- working Custom Post Type and Widget code no longer works when moved from functions.php to plugin
- WordPress custom post action hook
- Multiple Permalinks for custom post type post
- On clicking on the category name the page is redirecting on 404 pge
- Uploaded image not appearing in custom post type
- Row actions not showing? Why?
- Make custom post type display as a page
- How to: add option to add more checkboxes on custom post type
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- How to add notification in the sidebar of the administration panel when a Custom post type is created? [duplicate]
- how to set default value for checkbox in wordpress
- Custom Post Type get_post_type_archive_link( $post_type ) returns false
- How to have the right design for a custom post type without accessing themes
- Dynamic Custom Post Type Plugin
- Customize permalink when creating a post
- Custom Taxonomy Not Showing in Menu
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Get all of user’s custom post types in WP Admin for plugin
- Custom Post Type Navigation on Custom Field
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Custom Post Type: Upload Multiple Images
- WordPress theme custom capabilities not works
- How to customize a permalink (URL) structure?
- Getting template_include to work when allow_url_include is off?
- WordPress post_where & posts_join not working only for custom post type
- Orderby CPT custom fields not working
- Update post meta not working in transition_post_status
- Use custom metabox to update automatically a post after a given date
- Addition of custom option panel crashes Media Library & Admin Area
- Custom Permalink to remove category word , keeping posts permalink with date?
- Adding a metabox on a CPT’s submenu page
- custom comments form for custom post type
- Problems wp_insert_post and save_posts filter
- wordpress remove views from action links in a custom post
- When should I create custom post types?
- Custom post type’s extra fields – how to handle?
- Send a conditional email notification when a custom field value changes in Post Type
- Getting 400 Bad Request on AJAX Call
- Main query not querying any posts in custom taxonomy template
- Show current custom taxonomy
- How to insert data into meta box from another plugin?
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Add to ‘action’ within post.php to allow more actions when editing a Custom Post Type in a plugin
- Add post type pages with plugin
- Create a select metabox that the user can pupolate?
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Most viewed post of custom post type
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- Mandatory field in Custom post
- Custom post type page with parameter
- Custom post type category link redirecting to 404 page
- Translate website without duplicate custom post
- How to store the third party script with HTML code in the wordpress custom input field?
- How to show the post which checkbox is not selected
- Replace Content of Sidebar on Custom Post Type
- How to upload an image to a custom post type
- I have a random letter appearing before my content. Where to start looking for the cause?
- Apply a custom Template to a Custom Post Type from within a plugin
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- Correct way to register custom post type from external php file?
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- Add an array as post content dynamically
- Which File Populating CPTs in Slug URL
- Front End users account with lots of user Roles (not Woocommerce)
- How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
- Not Able to List CPT Based on Taxonomy Term
- How to reset HTML filter input fields on CPT list page?
- Foreach in get_post_types to apply a different filter per post type
- In WordPress do I create tables for my plugin or do I create custom post types for a Student and Classes Registration system?
- Simple renaming my custom post type set with a plugin doesn’t work?
- Display custom post type archive on page.php template
- get_post_types doesn’t work in plugin
- Show Templates in Custom Post Type Editor
- Associate custom categories to different user IDs
- Render custom taxonomy query as single template
- How to avoid hardcoded text in a custom page template?
- How to use get_sidebar in plugin folder?
- Resources to learn OOP for WordPress plugins, custom post types, etc
- How to create an upload page (front side)
- How to dynamically register custom post type
- get_post_types() is returning null
- I want to show a list of posts under specified categories
- How to consume external API from WordPress post editor and display the response data in the custom field?
- Add taxonomy or category slug to custom post types URL