the correct hooks are manage_{$post_type}_posts_custom_column
action hook to display the column and manage_edit-{$post_type}_columns
filter hook to add the column, so try,
add_action ( 'manage_cpt_posts_custom_column', array( $this, 'cs_show_expdate' ));
add_filter ('manage_edit-cpt_columns', array( $this, 'cs_add_expdate_column' ) );
Related Posts:
- Add an Outside Wrapper to my Header and Make it Full Width
- providing access to post_id or post inside functions.php
- Title and URL Error in Breadcrumb Navigation for Custom Post Types
- Update main post with same category when creating custom post to update the modified date
- How to string lines from the_content() hook in WordPress?
- Show category ID on custom post type
- How to customize a permalink (URL) structure?
- Custom Post Type with Templates using Meta Boxes?
- Can I list a custom post type within another custom post type in the admin area?
- Change custom post type slug from plugin options
- Posts are duplicating on wp_post_update
- Can’t edit custom post type
- Set URL link to featured image of custom post type
- Change CPT archive title
- AJAX load more for different custom post type loops
- PHP variable not regenerating when publishing multiple posts at the same time
- On update or create post redirect to current post position in list
- I need to add endpoint for wordpress categories
- How to target a specific custom post type post and its all children and grandchildren?
- Featured image overlay when changing post status
- get_post_meta not working on publishing
- Redirect 404 page with ID in slug to associated page with same ID in slug
- WordPress wrapped added a span tag to every single p tag
- ACF field key/value to show on taxonomy list
- Re-registering a custom post type not working (not showing up)
- Display featured image from one CPT within another CPT query
- Query taxonomy of taxonomy of custom post type
- Best way to style first post differently?
- How to make custom posts types display when published for the future
- How to rewrite url for any specific taxonomy?
- Limit number of custom posts per taxonomy
- create a new page from a custom post type similar to an authors page
- CPT archive admin menu label
- Anon function and add_meta_box
- Hide a widget inside a div on specific type of post
- Shortcode not working with post counter
- Changing default ‘posts’ parameters with register_post_type_args
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Cannot save CPT meta box
- Allow users to create posts without logging in?
- How to change permalink to include custom post type
- Filter Posts from the Main Query
- Configuring a meta query with multiple post types that have the same relationship on a single page
- Add term to custom post type on draft
- How to assign classes to all elements?
- next_/previous_post_link() `in_same_category` appears to fail when true
- Want to be able to sign up subscribers as authors
- Load scripts based on post type
- Different Category system needed for the Custom Post Type
- Global custom meta box
- Template not working for the custom Post type
- Categorise Custom Post Types
- Warning: Invalid argument supplied for foreach() [closed]
- Custom post type isn’t working
- How can I add a filter to a particular post format?
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- Is there any way to get list of all possible filter hooks for all post types?
- categories should be available across all custom post types
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- Featured Image field not appearing in Custom post type
- Add a custom text to admin footer in a Custom Post Type page
- Post-thumbnail only for specific post-types?
- custom post type metaboxes not saving
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- Enable taxonomies by post type in an array of CPTs
- Get rid of “trash can” for custom post type
- PHP question: how to combine syntax?
- Loop increase number
- custom post for slider
- Use remove_meta_box conditionally on custom post type
- ACF in wordpress
- Change Slug of a Custom Post Type
- Excerpt function for any content
- Assign category a default post type
- Custom Meta fields Update hook?
- Navigate posts with different post type that are in the same categories
- wp_trash_post action hook with custom post type
- How do I amend form data before it is saved for a custom post type
- List of all entries of custom-post-type: Add year-parameter?
- Page Template Dropdown For Custom Post Types
- Showing custom post type categories in the menu
- How to use a variable as a function name?
- Show Custom Message in WordPress Admin
- How to inherit field value from parent post into in child / sub post
- sortable columns for multiple custom post types not working
- How exclude or skip post type with get_next_post_link
- How check if a post is saved from backend or frontend?
- Prevent A Specific Custom Post Type Showing In WP Search Results Page
- How to build a WordPress post review system beside commenting
- WordPress hook after post content and meta update
- Create short URL with auto 301 redirect
- ACF for custom post type archive pages: which hook to use?
- Custom post type’s posts are not showing anywere but in xml sitemap
- WordPress hook which triggers on post import
- Assigning alternate single-{cpt} template based on blog_id in multisite
- Removing full title and breadcrumb header container for a specific post type
- Is it possible to use array_walk() to append terms to an array of posts?
- WordPress notification if new post published
- Before saving post hook
- Run shortcode in custom script in wp_head if post type is CPT ‘Jobs’