Created
February 5, 2021 15:29
-
-
Save cartpauj/e465c1a83106cca8eb5e81711121dd51 to your computer and use it in GitHub Desktop.
Force MemberPress user VAT type to business
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 | |
function force_business_vat_type($user) { | |
update_user_meta($user->ID, 'mepr_vat_customer_type', 'business'); | |
} | |
add_action('mepr-signup-user-loaded', 'force_business_vat_type'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment