Skip to content

Instantly share code, notes, and snippets.

@WillBrubaker
Created June 12, 2015 12:02
Show Gist options
  • Save WillBrubaker/509ea81f636132e03feb to your computer and use it in GitHub Desktop.
Save WillBrubaker/509ea81f636132e03feb to your computer and use it in GitHub Desktop.
Increase WooCommerce product prices by 20%
add_filter( 'woocommerce_get_price', 'wooninja_price_increase' );
function wooninja_price_increase( $price ) {
return $price + ( $price * .2 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment