Forked from JarrydLong/pmpro-vat-tax-addon-apply-vat-with-vat-number.php
Last active
August 17, 2023 06:55
-
-
Save dwanjuki/3d3ef97b09be84619dc59c68a05b0e7e to your computer and use it in GitHub Desktop.
Do not charge EU customers VAT
This file contains hidden or 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 | |
/** | |
* Do not charge EU customers VAT | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function mypmpro_override_init_pmprotax(){ | |
remove_filter("pmpro_tax", "pmprovat_pmpro_tax", 10, 3); | |
} | |
add_action( 'init', 'mypmpro_override_init_pmprotax' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment