0

Is it possible to hide the 'Published' word only on custom post types column? as in image and just leave the date and time?

enter image description here

1 Answer 1

0

WordPress has a filter for that..

function wpse406965_remove_status( $status, $post, $column_name, $mode ) {
    
    //Get the post type. Replace YOUR_CPT with your CPT slug.
    if ( $post->post_type == 'YOUR_CPT' ) {
        return false;
    }
    return $status;
}
add_filter( 'post_date_column_status', 'wpse406965_remove_status', 10, 4);
3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.