Created
March 30, 2020 08:58
-
-
Save andrewlimaza/d2c00294fe4da568f498aba9df250b71 to your computer and use it in GitHub Desktop.
Adjust VAT amount for VAT Add On PMPro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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