Created
May 28, 2026 20:18
-
-
Save dcooney/c29afbad0948c45fdc3de1dba3650d03 to your computer and use it in GitHub Desktop.
Remove company from data
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
| function remove_company_from_address($purchase_data, $valid_data) { | |
| if (isset($purchase_data['user_info']['address']['company'])) { | |
| unset($purchase_data['user_info']['address']['company']); | |
| } | |
| return $purchase_data; | |
| } | |
| add_filter('edd_purchase_data_before_gateway', 'remove_company_from_address', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment