Hi,
I'm currently trying to change how results are displayed in the form entries overview.
I receive the ID of a product category and I can turn that into a Product Name, however I can't get rid of the original ID from displaying.
Here's my code:
add_action("gform_entries_column", "ne_add_product_cat", 10, 5);
function ne_add_product_cat($form_id, $field_id, $value, $lead, $query_string){
if($form_id != 2)
return;
if($field_id != 3)
return;
$term = get_term( $value, 'product_cat' );
echo $term->name;
}
Cheers.