Dont know why my custom post type not add_post_meta

In your second file Car_Data_Meta_Boxes_Init line: add_action( ‘save_car_data_meta’, array( $this, ‘save_meta_boxes’ ), 10, 1 ); you bind to your custom action save_car_data_meta but this action is triggered inside save_meta_boxes function this is why it never gets triggered unless you do var_dump(Car_Data_Meta_Box_Data::save_car_data_meta(158)); manual triggering of save meta function in metabox rendering logic. So you need to … Read more