src/class-extended-cpt-admin.php
public function col_featured_image( string $image_size, array $args ) {

		if ( ! function_exists( 'has_post_thumbnail' ) ) {
			return;
		}

		if ( isset( $args['width'] ) ) {
			$width = is_numeric( $args['width'] ) ? sprintf( '%dpx', $args['width'] ) : $args['width'];
		} else {
			$width = 'auto';
		}

		if ( isset( $args['height'] ) ) {
			$height = is_numeric( $args['height'] ) ? sprintf( '%dpx', $args['height'] ) : $args['height'];
		} else {
			$height = 'auto';
		}

		$image_atts = [
			'style' => esc_attr( sprintf(
				'width:%1$s;height:%2$s',
				$width,
				$height
			) ),
			'title' => '',
		];

		if ( has_post_thumbnail() ) {
			the_post_thumbnail( $image_size, $image_atts );
		}

	}
public function col_featured_image( string $image_size, array $args ) {

		if ( ! function_exists( 'has_post_thumbnail' ) ) {
			return;
		}

		if ( isset( $args['width'] ) ) {
			$width = is_numeric( $args['width'] ) ? sprintf( '%dpx', $args['width'] ) : $args['width'];
		} else {
			$width = 'auto';
		}

		if ( isset( $args['height'] ) ) {
			$height = is_numeric( $args['height'] ) ? sprintf( '%dpx', $args['height'] ) : $args['height'];
		} else {
			$height = 'auto';
		}

		$image_atts = [
			'style' => esc_attr( sprintf(
				'width:%1$s;height:%2$s',
				$width,
				$height
			) ),
			'title' => '',
		];

		if ( has_post_thumbnail() ) {
			the_post_thumbnail( $image_size, $image_atts );
		}

	}
public function col_featured_image ( string $ image_size , array $ args ) { if ( ! function_exists ( 'has_post_thumbnail' ) ) { return ; } if ( isset ( $ args [ 'width' ] ) ) { $ width = is_numeric ( $ args [ 'width' ] ) ? sprintf ( '%dpx' , $ args [ 'width' ] ) : $ args [ 'width' ] ; } else { $ width = 'auto' ; } if ( isset ( $ args [ 'height' ] ) ) { $ height = is_numeric ( $ args [ 'height' ] ) ? sprintf ( '%dpx' , $ args [ 'height' ] ) : $ args [ 'height' ] ; } else { $ height = 'auto' ; } $ image_atts = [ 'style' => esc_attr ( sprintf ( 'width:%1$s;height:%2$s' , $ width , $ height ) ) , 'title' => '' , ] ; if ( has_post_thumbnail ( ) ) { the_post_thumbnail ( $ image_size , $ image_atts ) ; } }
Output column data for a post's featured image.

@param string $image_size The image size
@param array  $args       Array of `width` and `height` attributes for the image
Output column data for a post s featured image .