Hi,
I have the same problem.
Can your please tell me the name of the element that I have to add in the function so it will hide the order number in the header of the invoice?
In the example there are only other elements:
function bewpi_alter_hidden_order_itemmeta( $hidden_order_itemmeta ) {
$hidden_order_itemmeta[] = ‘_wc_cog_item_cost’;
$hidden_order_itemmeta[] = ‘_wc_cog_item_total_cost’;
$hidden_order_itemmeta[] = ‘_subscription_interval’;
$hidden_order_itemmeta[] = ‘_subscription_length’;
// end so on..
return $hidden_order_itemmeta;
}
add_filter( ‘bewpi_hidden_order_itemmeta’, ‘bewpi_alter_hidden_order_itemmeta’, 10, 1 );