Short info:
remove_action
for woocommerce_cross_sell_display
fails in X v8 (wrong priority)
Longer info:
X v7.x has an override template for cross-sells.php, X v8.x doesn’t, but instead uses remove_action
to unhook woocommerce_cross_sell_display
and then hooks its own function (see wp-content/themes/x/framework/functions/plugins/woocommerce.php:323
)
However, X fails unhooking, because X assumes a hook priority of 20, but WooCommerce (4.8.0) has it hooked at the default priority of 10 (see wp-content/plugins/woocommerce/includes/wc-template-hooks.php:238
).
As a temporary fix, I added this to wp-content/themes/x-child/functions.php
:
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );