Filter: tcp create assigned relation fields

Description

Allows to add fields (or any html code) to the modifyed area in the list of assigned products.

Parameters

$parent_post_id
(Number) Identifier of the parent post/product/option/etc.
$post_id
(Number) Identifier of the post/product/option/etc.
$meta_value
(String/Array/Object) Meta info related with the relation between the parent post/product/option and the post/product/option identified by the post_id.

Example


function my_tcp_create_assigned_relation_fields( $parent_post_id, $post_id, $meta_value ) {
	$meta_value = unserialize( $meta_value );
	if ( is_array( $meta_value )
		foreach( $meta_value as $id => $value )
			echo $id, ': ', $value, '<br>';
}
add_action( 'tcp_create_assigned_relation_fields', 'my_tcp_create_assigned_relation_fields', 10, 3 );

Change Log

Since 1.1.2

Related

tcp_modify_assigned_relation | tcp_assigned_product_list_price