Skip to content

Instantly share code, notes, and snippets.

@SiR-DanieL
Created August 27, 2018 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SiR-DanieL/0cacf18ac645c097a5e73259d26c6d3d to your computer and use it in GitHub Desktop.
Save SiR-DanieL/0cacf18ac645c097a5e73259d26c6d3d to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_order_barcodes_barcode_string', 'change_barcode_text' );
function change_barcode_text( $barcode_string ) {
$barcode_class = WooCommerce_Order_Barcodes::get_instance();
$order_id = barcode_class->get_barcode_order( $barcode_string );
return $order_id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment