Created
October 20, 2017 02:48
-
-
Save twern/9d3c335dbde10e2ccd0cb761cac99760 to your computer and use it in GitHub Desktop.
Filter - AP 19767
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_action( 'woocommerce_after_shop_loop_item_title', array( 'WGM_Template', 'woocommerce_de_price_with_tax_hint_loop' ), 5 ); | |
add_action ('woocommerce_after_shop_loop_item_title', array( 'WGM_Template', 'woocommerce_de_price_with_tax_hint_loop' ), 20 ); | |
add_filter( 'wgm_product_summary_parts', 'my_wgm_product_summary_parts', 10, 3 ); | |
function my_wgm_product_summary_parts( $output_parts, $product, $hook ) { | |
if ( $hook == 'loop' ) { | |
if ( isset( $output_parts[ 'price' ] ) ) { | |
unset( $output_parts[ 'price' ] ); | |
} | |
} | |
return $output_parts; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment