If you want to target all custom post types as well as the built in post types (posts and pages) then you need to use the manage_posts_custom_column
hook instead of the manage_{post_type}_posts_custom_column
hook which is used to target specific post type columns, subtle difference in naming convention but big difference in how they operate.
Example:
add_action( 'manage_posts_custom_column', 'your_callback');
With the above hook, you can still conditionally check for and exclude certain post types, like the built in types if they do not apply to your logic, but this is what you need to target all post types if you don’t know the post type name ahead of time.
Related Posts:
- Add “Last Edited by” column to custom post type list table
- How to add custom columns to Custom Post Type admin screen
- Add custom column to custom post type overview in backend
- How to show custom (checkbox) field value in admin post list?
- Custom post admin filtering by post meta (the date)
- Admin Column Text Positioning
- Adding HTML tags or css classes to admin columns
- CPT Columns doesn’t show categories
- Change column of row action (Quick Edit) links in WP_List_Table
- Adding ‘menu order’ column to custom post type admin screen
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- How do I set the default admin sort order for a custom post type to a custom column?
- Customize Edit Post screen for Custom Post Types?
- Filter by custom field in custom post type on admin page
- 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)?
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- How can I filter posts by post_parent in the admin?
- Filter custom post types in admin not working
- 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?
- Column sorting with emtpy meta values
- manage posts custom column is not populating data from meta boxes
- Prevent reload confirmation after AJAX save
- Filter by custom Field for Custom post type Admin Listing
- Admin Post Update Redirection to Posts Screen
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Custom Post type sort order not working in the admin area
- How to get search results in the backend admin on a custom post type?
- Unable to filter on field on edit.php page
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- Custom Post Type, Two categories, Two columns with Pagination
- No results searching custom post type in admin panel
- Replacing the title in admin list table
- How can I add columns to custom post tables
- Custom Post Type and taxonomies’s labels localization not working
- Change admin post thumbnail size for custom post type only
- Custom Post Types: Custom columns with Title submenu?
- Show admin help message across custom post type parent and child posts
- WordPress User Roles, Custom Post Types, and Admin views
- Using WPAlchemy metabox values in another metabox
- Add text to wordpress admin ‘Add Post’ edit
- How can I change the title of an Add New page in Admin for custom post type
- How to customize admin posts based on the user who is logged in
- Problem adding column to WC Subscription [closed]
- Set a default category – if the user didn’t select one- before creating a post
- How can I create a custom meta box to add an mp4 video to a page?
- Remove rows in the manage post/page view
- Access $post object when adding custom columns to list table
- Add acf field in title (admin table)
- Get parse_query filter to return slug instead of id
- Custom Post Type Nav to Subpage
- Selecting a post in Dashboard
- Custom admin post.php page
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- How to show first name and last name in custom post type columns
- Order a custom post type admin screen by a second custom post type title
- Filtering posts list table
- CPT Validation to not show “Post updated.”
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Custom post type isn’t working
- Add a ‘guide’ image to custom post type admin page
- Use remove_meta_box conditionally on custom post type
- Custom columns doesn’t appear in custom post type
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- Problem with $post_id object’s property
- Pods CMS: How to add custom column to Adnvanced Content Type
- How to check if post/page or taxonomy post is published by admin
- Linking to Post Types from wp-admin
- Insert Custom Post Types
- Custom Post Type – Support “author” only for admins
- Getting post attchment URL to populate a CPT Admin Page Column
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- Is there a hook between clicking on “Add new” and the edit screen of a new post?
- Function to add custom HTML into head in custom post-type list page
- WordPress admin for a custom post, hide/collapse the main “title” and “description” boxes
- Custom sortable column with WPAlchemy
- Sortable column with custom data by date
- Add Content Column to Custom Post Type backend
- custom filtering admin columns
- Custom sorting in post columns by ACF Pro Select Field
- How to hide private posts even if user is admin
- Adding orderby url parameter to main CPT admin menu link
- Pagination in wp-admin for CPT
- Create an administation subpage containing posts in a certain category
- Columns depending on posts count
- Making my custom column sortable
- Custom post type doesn’t display on admin list
- Shared Custom post type between WP network sites
- Exclude categories For Custom post types
- WordPress Author Posts Review After Every Change In The Same WordPress Post
- Redirect preview single post link to a page
- Collection of fields in a single post
- Display read only info on admin, custom post page
- How to set the Screen Options for Users in the Admin Panel?
- Issue displaying multiple TinyMCE editors with WPAlchemy