fc_pro_cross_sell_item_details_inner_after
Type: Action
Fires after the cross sell item details inner.
Signature
do_action( 'fc_pro_cross_sell_item_details_inner_after', $_product );
Parameters
| Name | Type | Description |
|---|---|---|
$_product | \WC_Product | The product. |
Since
1.3.0
Source: templates/fc-pro/cart-cross-sells/cart/cross-sells.php
Examples
add_action( 'fc_pro_cross_sell_item_details_inner_after',
/**
* Add badge before cross-sell item details.
*
* @param \WC_Product $_product The product.
*/
function( $_product ) {
if ( $_product->is_on_sale() ) {
echo '<span class="cross-sell-badge">On Sale!</span>';
}
},
10
);