Solved Situation:
// Add the custom columns to the copas post type:
add_filter( 'manage_copas_posts_columns', 'set_custom_edit_copas_columns' );
function set_custom_edit_copas_columns($columns) {
//unset( $columns['author'] );
$columns['coluna_carta'] = __( 'Carta', 'your_text_domain' );
$columns['coluna_naipe'] = __( 'Naipe', 'your_text_domain' );
$columns['coluna_situacao'] = __( 'Situacao', 'your_text_domain' );
return $columns;
}
add_action( 'manage_copas_posts_custom_column' , 'custom_copas_column', 10, 2 );
function custom_copas_column( $column, $post_id ) {
switch ( $column ) {
case 'coluna_carta' :
echo get_post_meta( $post_id , 'dbt_carta' , true );
break;
case 'coluna_naipe' :
echo get_post_meta( $post_id , 'dbt_naipe' , true );
break;
case 'coluna_situacao' :
echo get_post_meta( $post_id , 'dbt_situacao' , true );
break;
}
}