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