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
- Load a script just to custom post type in admin
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Style custom columns in admin panels (especially to adjust column cell widths)
- 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
- Replacing the title in admin list table
- Make custom column sortable
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Merge two custom post types into one admin page?
- Remove the “View” Link in Post Admin
- 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)?
- Custom sortable columns ordered by meta-value?
- 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
- Custom post type admin search
- Ordering posts by custom taxonomy in admin area
- Create a dropdown with Custom Post Types as option in admin
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- 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
- jQuery UI in Admin (Best Practice?)
- Admin Post Update Redirection to Posts Screen
- Exclude add_filter from the admin
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Custom Post type sort order not working in the admin area
- order of date column in custom post type
- How to get search results in the backend admin on a custom post type?
- custom sortable column
- 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
- Remove Post Page “View Post” Link
- How can I add columns to custom post tables
- How to add post_author column to custom post type
- Adding help information to custom post edit page
- Only Show an Author Their Custom Post Types
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Custom Post Type and taxonomies’s labels localization not working
- Change admin post thumbnail size for custom post type only
- Filters post in admin with dropdown select, custom post type
- Custom Post Types: Custom columns with Title submenu?
- Admin List Dynamic Heading
- How can I add a column in the wp_list_table of the admin area?
- Show admin help message across custom post type parent and child posts
- WordPress User Roles, Custom Post Types, and Admin views
- Settings page above CPT page in admin section
- How to search CPT’s by meta query from the admin dashboard?
- Add theme options to custom post type admin pages [closed]
- Adding menu_order to CPT admin page
- Using WPAlchemy metabox values in another metabox
- How do I sort a custom post type admin column using two meta keys?
- Add text to wordpress admin ‘Add Post’ edit
- Add Post Url to Manage Edit Screen
- Changing ‘view’ link for custom post type on list post screen?
- Sort admin area by custom Event Date field
- 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
- Add html to cpt main page / admin edit.php
- How can I create a custom meta box to add an mp4 video to a page?
- Remove rows in the manage post/page view
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Access $post object when adding custom columns to list table
- How to only show posts assigned to current user, only in certain post types
- how to check if custom post type column already exists?
- Add acf field in title (admin table)
- Create a page that will be used to create a custom post type
- Customize my custom taxonomy table in Admin panel
- 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
- Extending AZIndex plugin to use custom post types and custom taxonomies
- A simple script to allow sorting of custom posts in admin?
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Notify admin on new submit
- WP CPT Custom Sortable Column in Admin Dashboard Sort Order Random
- On update or create post redirect to current post position in list