Filter: tcp manage posts custom column

Description

The “tcp_manage_posts_custom_column” filter is used to add values to each row in the back-end products lists.

Example

<?php

function my_tcp_manage_posts_custom_column( $column_name, $post ) {
	if ( tcp_is_saleable_post_type( $post->post_type ) ) {
		if ( 'new_field' == $column_name ) {
			echo get_new_field_value( $post->ID );
		}
	}
}
add_filter( 'tcp_manage_posts_custom_column', 'my_tcp_manage_posts_custom_column', 10, 2 ); ?>

Change Log

Since 1.0.8

Related

tcp_custom_columns_definition