// https://www.smashingmagazine.com/2017/12/customizing-admin-columns-wordpress/
// ADD COLUMNS
add_filter( 'manage_realestate_posts_columns', 'smashing_filter_posts_columns' );
function smashing_filter_posts_columns( $columns ) {
$columns['image'] = __( 'Image' );
$columns['price'] = __( 'Price', 'smashing' );
$columns['area'] = __( 'Area', 'smashing' );
return $columns;
}
// REORDER COLUMNS
add_filter( 'manage_realestate_posts_columns', 'smashing_realestate_columns' );
function smashing_realestate_columns( $columns ) {
$columns = array(
'cb' => $columns['cb'],
'image' => __( 'Image' ),
'title' => __( 'Title' ),
'price' => __( 'Price', 'smashing' ),
'area' => __( 'Area', 'smashing' ),
);
return $columns;
}