function get_columns() {

		$profile = ( new Catalog() )->getProfile();

		$columns = [
			'cb' => '<input type="checkbox" />', // Render a checkbox instead of text
			'status' => __( 'Catalog Status', 'pressbooks' ),
			'privacy' => __( 'Privacy Status', 'pressbooks' ),
			'cover' => __( 'Cover', 'pressbooks' ),
			'title' => __( 'Title', 'pressbooks' ),
			'author' => __( 'Author', 'pressbooks' ),
		];

		for ( $i = 1; $i <= Catalog::MAX_TAGS_GROUP; ++$i ) {
			$columns[ "tag_{$i}" ] = ! empty( $profile[ "pb_catalog_tag_{$i}_name" ] ) ? $profile[ "pb_catalog_tag_{$i}_name" ] : __( 'Tag', 'pressbooks' ) . " $i";
		}

		$columns['featured'] = __( 'Featured', 'pressbooks' );
		$columns['pub_date'] = __( 'Pub Date', 'pressbooks' );

		return $columns;
	}
function get_columns() {

		$profile = ( new Catalog() )->getProfile();

		$columns = [
			'cb' => '<input type="checkbox" />', // Render a checkbox instead of text
			'status' => __( 'Catalog Status', 'pressbooks' ),
			'privacy' => __( 'Privacy Status', 'pressbooks' ),
			'cover' => __( 'Cover', 'pressbooks' ),
			'title' => __( 'Title', 'pressbooks' ),
			'author' => __( 'Author', 'pressbooks' ),
		];

		for ( $i = 1; $i <= Catalog::MAX_TAGS_GROUP; ++$i ) {
			$columns[ "tag_{$i}" ] = ! empty( $profile[ "pb_catalog_tag_{$i}_name" ] ) ? $profile[ "pb_catalog_tag_{$i}_name" ] : __( 'Tag', 'pressbooks' ) . " $i";
		}

		$columns['featured'] = __( 'Featured', 'pressbooks' );
		$columns['pub_date'] = __( 'Pub Date', 'pressbooks' );

		return $columns;
	}
function get_columns ( ) { $ profile = ( new Catalog ( ) ) -> getProfile ( ) ; $ columns = [ 'cb' => '<input type="checkbox" />' , // Render a checkbox instead of text 'status' => __ ( 'Catalog Status' , 'pressbooks' ) , 'privacy' => __ ( 'Privacy Status' , 'pressbooks' ) , 'cover' => __ ( 'Cover' , 'pressbooks' ) , 'title' => __ ( 'Title' , 'pressbooks' ) , 'author' => __ ( 'Author' , 'pressbooks' ) , ] ; for ( $ i = 1 ; $ i <= Catalog :: MAX_TAGS_GROUP ; ++ $ i ) { $ columns [ "tag_{$i}" ] = ! empty ( $ profile [ "pb_catalog_tag_{$i}_name" ] ) ? $ profile [ "pb_catalog_tag_{$i}_name" ] : __ ( 'Tag' , 'pressbooks' ) . " $i" ; } $ columns [ 'featured' ] = __ ( 'Featured' , 'pressbooks' ) ; $ columns [ 'pub_date' ] = __ ( 'Pub Date' , 'pressbooks' ) ; return $ columns ; }
This method dictates the table's columns and titles.

@return array An associative array containing column information: 'slugs'=>'Visible Titles'
This method dictates the table s columns and titles .