Skip to content

Instantly share code, notes, and snippets.

@SirDarcanos
Created August 27, 2018 06:31
Show Gist options
  • Save SirDarcanos/0cacf18ac645c097a5e73259d26c6d3d to your computer and use it in GitHub Desktop.
Save SirDarcanos/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