Created
June 30, 2022 11:52
-
-
Save hedqvist/ac56baa7e569e306c15d807f6cfc4feb to your computer and use it in GitHub Desktop.
Fortnox - Dont send over Remarks (Customer note)
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 | |
/** | |
* @snippet WooCommerce - Fortnox plugin by Redlight Media - Dont send remarks to fortnox | |
* @author Redlight Media AB / Christopher Hedqvist | |
* @compatible WooCommerce 6.0.0 | |
*/ | |
function redlight_fortnox_dont_send_remarks( $orderData, $order_id) { | |
$orderData['Order']['CopyRemarks'] = false; | |
$orderData['Order']['Remarks'] = ""; | |
return $orderData; | |
} | |
add_filter('obj_fortnox_order_data', 'redlight_fortnox_dont_send_remarks', 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment