Skip to content

Instantly share code, notes, and snippets.

@hedqvist
Created February 21, 2020 07:23
Show Gist options
  • Select an option

  • Save hedqvist/ec484461862ffeeb22c2f6e8909ac29b to your computer and use it in GitHub Desktop.

Select an option

Save hedqvist/ec484461862ffeeb22c2f6e8909ac29b to your computer and use it in GitHub Desktop.
Orderscanner / Packstation - Change EAN-meta key
<?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