woocommerce_calculated_order_item_cogs_value, $value, $this
woocommerce_calculated_order_item_cogs_value, $value, $this
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_calculated_order_item_cogs_value, $value, $this') is found 1 times:
- /includes/class-wc-order-item.php line 529
* * @param float|null $value The value originally calculated, null if it was not possible to calculate it. * @param WC_Order_Item $line_item The order item for which the value is calculated. */ $value = apply_filters( 'woocommerce_calculated_order_item_cogs_value', $value, $this ); if ( is_null( $value ) ) { return false; } $this->set_cogs_value( (float) $value );