Skip to content

Instantly share code, notes, and snippets.

@webdados
Created August 14, 2023 10:06
Show Gist options
  • Save webdados/175be5a7485ecf68dd6e0b862e8aae86 to your computer and use it in GitHub Desktop.
Save webdados/175be5a7485ecf68dd6e0b862e8aae86 to your computer and use it in GitHub Desktop.
Increase all prices on the Kuanto Kusta WooCommerce feed
<?php
/* Pro plugin: https://ptwooplugins.com/product/feed-kuantokusta-for-woocommerce-pro/ */
add_filter( 'kuantokusta_product_node_default_regular_price', 'kk_increase_prices' );
add_filter( 'kuantokusta_product_node_variation_regular_price', 'kk_increase_prices' );
add_filter( 'kuantokusta_product_node_default_current_price', 'kk_increase_prices' );
add_filter( 'kuantokusta_product_node_variation_current_price', 'kk_increase_prices' );
function kk_increase_prices( $price ) {
return $price * 1.15;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment