Change WooCommerce shop loop add to cart button HTML


add_filter('woocommerce_loop_add_to_cart_link', 'vakulkin_optionsForShopLoop', 10, 2);
function vakulkin_optionsForShopLoop($html, $product) {
	$html = '<div class="new content">New content for product with id ' . $product->get_id() . '</div>';
	return $html;
}

Leave a Reply

Your email address will not be published. Required fields are marked *