The WordPress Core woocommerce order formatted line subtotal hook.
... return $subtotal; } add_filter( 'woocommerce_order_formatted_line_subtotal', ' filter_woocommerce_order_formatted_line_subtotal', 20, 3 );.
function my_wgm_product_summary_parts( $output_parts, $product, $hook ) {. if ( $hook == 'loop' ) ...
It isn't mentioned in the Codex, but I usually call the remove_action() function from a hook. Also, as covered in the Codex example for action ...
The offending function is “woosb_order_formatted_line_subtotal” (hooked up to the filter “woocommerce_order_formatted_line_subtotal”). I could fix it by ...
I have tried $product->get_ID() , $post_id and get_the_ID() . add_filter( ' woocommerce_order_formatted_line_subtotal', 'custom_field_test'); ...
We have a bunch of products with eitherNo priceZero priceWe made them purchasable with the builtin hook but the cart still displays them...
This is simply a list of action and filter hooks found within
add_filter( 'woocommerce_order_formatted_line_subtotal' ...
... Files · Hooks · Sitemap · Blog · Home / APIs / WC_Abstract_Order:: get_formatted_line_subtotal() – Gets line subtotal – formatted for display.