Created
December 2, 2019 17:01
-
-
Save hedqvist/96f5365ea1be4740952929381e0f59f7 to your computer and use it in GitHub Desktop.
Fortnox - Customer Type
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 | |
/** | |
* @snippet WooCommerce - Fortnox plugin by Redlight Media - (REGISTRED USERS) Set customer Type to Private | |
* @author Redlight Media AB / Christopher Hedqvist | |
* @compatible WooCommerce 3.8.0 | |
*/ | |
function redlight_custom_customer_type( $customer) { | |
$customer['Customer']['Type'] = 'PRIVATE'; | |
return $customer; | |
} | |
add_filter( 'obj_fortnox_customer_data', 'redlight_custom_customer_type'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment