Created
May 22, 2020 13:07
-
-
Save hedqvist/77c67b1c4efba032b684effd8db6a2e1 to your computer and use it in GitHub Desktop.
Unifaun - Declarant Date
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 -Unifaun - Set Customs declarantDate to todays Date | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.9.0 | |
| */ | |
| function redlight_unifaun_customs_date( $customsDeclaration, $shipment, $order_id) { | |
| $customsDeclaration['declarantDate'] = date('Y-m-d'); | |
| return $customsDeclaration; | |
| } | |
| add_filter('ac_wc_unifaun_shipment_customs_declaration', 'redlight_unifaun_customs_date', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment