Created
February 21, 2020 07:23
-
-
Save hedqvist/ec484461862ffeeb22c2f6e8909ac29b to your computer and use it in GitHub Desktop.
Orderscanner / Packstation - Change EAN-meta key
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 - Orderscanner/Packstation - Get barcode from iZettle-plugin | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.9.0 | |
| */ | |
| function redlight_redlight_izettle_barcode( $meta_key ) { | |
| $meta_key = '_izettle_barcode'; | |
| return $meta_key; | |
| } | |
| add_filter( 'orderscanner_packstation_product_barcode_meta_key', 'redlight_redlight_izettle_barcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment