Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Created March 30, 2020 08:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewlimaza/d2c00294fe4da568f498aba9df250b71 to your computer and use it in GitHub Desktop.
Save andrewlimaza/d2c00294fe4da568f498aba9df250b71 to your computer and use it in GitHub Desktop.
Adjust VAT amount for VAT Add On PMPro
<?php
/**
* Adjust VAT amount charged from VAT Tax Add On Paid Memberships Pro.
* Adjust the code to your liking/needs.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function adjust_my_pmpro_vat( $vat ) {
$vat['DE'] = 0.25; //Change VAT to 25% for Germany.
return $vat;
}
add_filter( 'pmpro_vat_by_country', 'adjust_my_pmpro_vat', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment