Remove ‘Pre-order product’ cart label
Hi there,
Is it possible to remove the ‘Pre-order product’ label that displays with the product in the cart?
Unfortunately it doesn’t display correctly with the CartPops mini cart, and I can’t find a way to hide it as it doesn’t have a class set.
I think it’s being called from class-yith-pre-order-frontend.php
/**
* Text that announces a product is a pre-order displayed in the Cart page.
*
* @param array $cart_item The cart item.
*/
public function pre_order_product_cart_label( $cart_item ) {
$product = $cart_item['data'];
if ( ! is_cart() || ! YITH_Pre_Order_Utils::is_pre_order_active( $product ) ) {
return;
}$label = apply_filters( 'yith_ywpo_pre_order_product_label', __( 'Pre-order product', 'yith-pre-order-for-woocommerce' ), null, $product->get_id(), $cart_item );
$output = apply_filters( 'yith_ywpo_pre_order_product_label_output', '
' . $label . '', null, $product->get_id(), $cart_item, $label );
echo wp_kses_post( $output );
}
Is there a way I can either stop the function from running, or add a style class so I can hide with css?
Thank you for your help!
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس