1$pt = get_post_type_object( 'books' );
2
3// These two usually contain the post type name in plural.
4// They may differ though.
5echo $pt->label;
6echo $pt->labels->name;
7
8// This one holds the post type name in singular.
9echo $pt->labels->singular_name;