public function manage_page_type_posts_custom_column( $column_name, $post_id, $term_id = null ) {
		if ( ! in_array( $this->post_type, papi_get_post_types(), true ) && ! in_array( $this->taxonomy, papi_get_taxonomies(), true ) ) {
			return;
		}

		/**
		 * Hide column for post type. Default is false.
		 *
		 * @param string $post_type
		 */
		if ( apply_filters( 'papi/settings/column_hide_' . $this->get_meta_type_value(), false ) ) {
			return;
		}

		// Column name most be `entry_type`. On taxomy the column name is `post_id` variable.
		if ( $column_name !== 'entry_type' && $post_id !== 'entry_type' ) {
			return;
		}

		// Get the entry type for the post or term.
		$entry_type = papi_get_entry_type_by_meta_id(
			is_numeric( $post_id ) ? $post_id : $term_id,
			papi_get_meta_type()
		);

		$post = ! empty( $this->post_type ) && empty( $this->taxonomy );
		$type = $post ? 'page' : 'taxonomy';
		$arg  = $post ? papi_get_post_type() : papi_get_taxonomy();
		$show = call_user_func_array( "papi_filter_settings_show_standard_{$type}_type", [$arg] );

		if ( ! is_null( $entry_type ) && ( $show === false || get_metadata( papi_get_meta_type( $type ), ( is_numeric( $post_id ) ? $post_id : $term_id ), papi_get_page_type_key(), true ) === $entry_type->get_id() ) ) {
			echo esc_html( $entry_type->name );
		} else {
			echo esc_html( call_user_func_array( "papi_filter_settings_standard_{$type}_type_name", [$arg] ) );
		}
	}
public function manage_page_type_posts_custom_column( $column_name, $post_id, $term_id = null ) {
		if ( ! in_array( $this->post_type, papi_get_post_types(), true ) && ! in_array( $this->taxonomy, papi_get_taxonomies(), true ) ) {
			return;
		}

		/**
		 * Hide column for post type. Default is false.
		 *
		 * @param string $post_type
		 */
		if ( apply_filters( 'papi/settings/column_hide_' . $this->get_meta_type_value(), false ) ) {
			return;
		}

		// Column name most be `entry_type`. On taxomy the column name is `post_id` variable.
		if ( $column_name !== 'entry_type' && $post_id !== 'entry_type' ) {
			return;
		}

		// Get the entry type for the post or term.
		$entry_type = papi_get_entry_type_by_meta_id(
			is_numeric( $post_id ) ? $post_id : $term_id,
			papi_get_meta_type()
		);

		$post = ! empty( $this->post_type ) && empty( $this->taxonomy );
		$type = $post ? 'page' : 'taxonomy';
		$arg  = $post ? papi_get_post_type() : papi_get_taxonomy();
		$show = call_user_func_array( "papi_filter_settings_show_standard_{$type}_type", [$arg] );

		if ( ! is_null( $entry_type ) && ( $show === false || get_metadata( papi_get_meta_type( $type ), ( is_numeric( $post_id ) ? $post_id : $term_id ), papi_get_page_type_key(), true ) === $entry_type->get_id() ) ) {
			echo esc_html( $entry_type->name );
		} else {
			echo esc_html( call_user_func_array( "papi_filter_settings_standard_{$type}_type_name", [$arg] ) );
		}
	}
public function manage_page_type_posts_custom_column ( $ column_name , $ post_id , $ term_id = null ) { if ( ! in_array ( $ this -> post_type , papi_get_post_types ( ) , true ) && ! in_array ( $ this -> taxonomy , papi_get_taxonomies ( ) , true ) ) { return ; } /**
		 * Hide column for post type. Default is false.
		 *
		 * @param string $post_type
		 */ if ( apply_filters ( 'papi/settings/column_hide_' . $ this -> get_meta_type_value ( ) , false ) ) { return ; } // Column name most be `entry_type`. On taxomy the column name is `post_id` variable. if ( $ column_name !== 'entry_type' && $ post_id !== 'entry_type' ) { return ; } // Get the entry type for the post or term. $ entry_type = papi_get_entry_type_by_meta_id ( is_numeric ( $ post_id ) ? $ post_id : $ term_id , papi_get_meta_type ( ) ) ; $ post = ! empty ( $ this -> post_type ) && empty ( $ this -> taxonomy ) ; $ type = $ post ? 'page' : 'taxonomy' ; $ arg = $ post ? papi_get_post_type ( ) : papi_get_taxonomy ( ) ; $ show = call_user_func_array ( "papi_filter_settings_show_standard_{$type}_type" , [ $ arg ] ) ; if ( ! is_null ( $ entry_type ) && ( $ show === false || get_metadata ( papi_get_meta_type ( $ type ) , ( is_numeric ( $ post_id ) ? $ post_id : $ term_id ) , papi_get_page_type_key ( ) , true ) === $ entry_type -> get_id ( ) ) ) { echo esc_html ( $ entry_type -> name ) ; } else { echo esc_html ( call_user_func_array ( "papi_filter_settings_standard_{$type}_type_name" , [ $ arg ] ) ) ; } }
Add custom table column to page or taxonomy type.

@param string $column_name
@param int    $post_id
@param int    $term_id
Add custom table column to page or taxonomy type .