Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@twern
Created October 20, 2017 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twern/9d3c335dbde10e2ccd0cb761cac99760 to your computer and use it in GitHub Desktop.
Save twern/9d3c335dbde10e2ccd0cb761cac99760 to your computer and use it in GitHub Desktop.
Filter - AP 19767
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