Skip to main content

fc_enable_order_summary_cart_item_unit_price

Type: Filter

Filters whether the order summary shows the cart item unit price.

Signature​

apply_filters( 'fc_enable_order_summary_cart_item_unit_price', $enabled );

Parameters​

NameTypeDescription
$enabledboolWhether the feature is enabled. Default true.

Since​

  • 2.1.0

Source: inc/checkout-steps.php

Examples​

add_filter( 'fc_enable_order_summary_cart_item_unit_price',
/**
* Hide cart items unit prices in the order summary on the checkout page.
*
* @param bool $enabled Whether the feature is enabled. Default true.
* @return bool Filtered value.
*/
function( $enabled ) {
return false;
},
10
);