How to add new column on a custom post type in WordPress back-office?

Simply write the code below in the PHP Function of wordpress. // Add the custom columns add_filter( ‘manage_ogpqrcode_posts_columns’, ‘set_custom_columns’ ); function set_custom_columns($columns) { unset( $columns[‘author’] ); $columns[‘ref_name’] = __( ‘Ref’, ‘your_text_domain’ ); $columns[‘qr_code’] = __( ‘QR Code’, ‘your_text_domain’ ); return $columns; } // Add the data to the custom columns add_action( ‘manage_ogpqrcode_posts_custom_column’ , ‘custom_column’, 10,…