Change/Remove Product Related Heading
add_filter(‘woocommerce_product_related_products_heading’, function () { return ”; });Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘woocommerce_product_related_products_heading’, function () { return ”; });Continue reading
add_filter(‘woocommerce_product_description_heading’, ‘__return_null’);Continue reading
function g9_remove_tabs($tabs) { unset( $tabs[‘description’] ); unset($tabs[‘reviews’]); unset($tabs[‘additional_information’]); return $tabs; } add_filter(‘woocommerce_product_tabs’, ‘g9_remove_tabs’, 98);Continue reading
function g9_brand_single_product() { global $product; $term_ids = wp_get_post_terms($product->get_id(), ‘yith_product_brand’, array(‘fields’ => ‘ids’)); if (!empty($term_ids)) { echo get_the_term_list($product->get_id(), ‘yith_product_brand’, ‘ ‘, ‘, ‘, ‘ ‘); } } add_action(‘woocommerce_after_shop_loop_item_title’, ‘g9_brand_single_product’, 1);Continue reading
add_filter(‘yith_gift_cards_show_field’, ‘__return_false’);Continue reading
function g9_remove_image_zoom_support() { remove_theme_support(‘wc-product-gallery-zoom’); } add_action(‘wp’, ‘g9_remove_image_zoom_support’, 100);Continue reading
function g9_update_price_with_variation_price() { global $product; $price = $product->get_price_html(); wc_enqueue_js(” jQuery(document).ready(function ($) { $(document).on(‘found_variation’, ‘form.cart’, function( event, variation ) { if(variation.price_html) $(‘.summary > p.price’).html(variation.price_html); $(‘.summary .woocommerce-variation-price’).hide(); }); $(document).on(‘hide_variation’, ‘form.cart’, function( event, variation ) { $(‘.summary > p.price’).html(‘” . $price . “‘);…Continue reading
function g9_change_cross_sells_columns($columns) { return 3; } add_filter(‘woocommerce_cross_sells_columns’, ‘g9_change_cross_sells_columns’);Continue reading
function g9_wc_ajax_variation_threshold($qty, $product) { return 300; } add_filter(‘woocommerce_ajax_variation_threshold’, ‘g9_wc_ajax_variation_threshold’, 10, 2);Continue reading
add_filter(‘woocommerce_get_image_size_single’, function($size) { return array( ‘width’ => 800, ‘height’ => 800, ‘crop’ => 1, ); });Continue reading