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?
- Hook for post and page load
- How do you use a CPT as the default home page?
- How to change default position of WP meta boxes?
- Displaying Custom Post Types In “At A Glance” Meta Box
- Display a query with multiple post types and same relationship on a single page
- how to group custom post types
- Unregister post type from child theme
- echo value from ‘select’ field type into page template using cmb2?
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- How often do you need to register_post_type?
- Exclude add_filter from the admin
- WordPress 3.1 – How does one add sticky post capabilities to post types
- How to set a custom post type post as static front page?
- With what hook can I address all posts from all custom post types when they are published?
- Posts to expire (deleted) after a date
- White screen error for a custom theme
- Hook when adding or editing a specific custom post type? [closed]
- Automatically assign a custom post to a custom taxonomy based on custom field value
- Exclude Custom Post Type & Pages From Auto-Tag Function
- Custom user role not working as expected
- Limit Authors to their Own Posts on front-end excluding admins
- Add information above a custom post type listing of all posts page
- How to change the admin menu “Pages” to something else
- Apply post formats to a specific post type only?
- Can’t unregister parent theme’s CPT from my child theme
- Loading all files within a directory
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- What’s the difference between same wp functions get_posts(); functions in different form?
- How to: Display ACF [fields] on Custom Post Types Utilising WordPress ‘Hooks’? [closed]
- Function to display custom post type on front page makes menu items dissapear
- Custom Post Type with Templates using Meta Boxes?
- Can I list a custom post type within another custom post type in the admin area?
- Posts are duplicating on wp_post_update
- On update or create post redirect to current post position in list
- Redirect 404 page with ID in slug to associated page with same ID in slug
- Display featured image from one CPT within another CPT query
- Anon function and add_meta_box
- Shortcode not working with post counter
- Changing default ‘posts’ parameters with register_post_type_args
- Allow users to create posts without logging in?
- Filter Posts from the Main Query
- Load scripts based on post type
- Categorise Custom Post Types
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- 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
- Enable taxonomies by post type in an array of CPTs
- Showing custom post type categories in the menu
- How to use a variable as a function name?
- sortable columns for multiple custom post types not working
- How to build a WordPress post review system beside commenting
- WordPress hook after post content and meta update
- Run shortcode in custom script in wp_head if post type is CPT ‘Jobs’
- Custom Ratings for Theme, Proper way to Refactor Code and Clean up Template File
- posts within custom post type all share the same content in the front-end
- Shortcode to return single custom post based on post taxonomy
- Using Wp_Query, Json to add Highcharts series data
- Make a custom column sortable by a value from a different custom post type
- Send post changes to set email addresses (not users or subscribers)
- wordpress post_where set only for my costum post type
- Let users upload image(s) to the post from front end
- Foreach loop returning more than one item when querying taxonomy
- Have custom post type Visibility be private by default, and have radio button also set to “Private”
- Post visibility option to theme front-end for author to select?
- Sorting custom post types in edit.php : Post disappear
- Page template that uses lightbox to display post images
- Function to allow single post template based on custom taxonomy?
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Custom Form / Search with Custom Post Type Data
- php dynamic content inside shortcode
- Check that a slug is present in the get_terms request
- wp_set_object_terms creates taxonomies but does not add custom posts to it
- Custom Post Type action on post update
- Show Post Types customized in Template Page
- Custom attachment function not working in v5.4.2?
- CPT tags not showing when editing post
- Persist meta box choices throughout all posts of same post type
- subtracting the current post form then whole loop, which is generating all CPT titles
- Custom Function to redirect singular post if specific meta field is empty
- Function for when new custom post type is created should do something
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Execute code only after user clicks ‘update’ button for CPT being edited
- Pagination fault in custom post type archive page [duplicate]
- How can i call a custom method on submission of a custom plugin post type?
- Set the Title of a Custom Post Type by code as Author’s Username
- Function not pulling image or text from custom post type
- Rich Custom Field for Custom Post type not saving
- Custom Loop for custom post type. Compare by meta_value?
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- How to make a non-public post on wordpress approval?
- how to display custom taxonomies in front page
- wordpress category form fields in popup
- How to display *block number* instead *date value* on WordPress posts?