Created
April 22, 2022 08:03
-
-
Save bradleysa/43c49d76e501de96916e84417fbd4912 to your computer and use it in GitHub Desktop.
Print Invoice: Remove SKU
This file contains 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( 'wcdn_order_item_fields', 'wcdn_remove_sku', PHP_INT_MAX, 3 ); | |
function wcdn_remove_sku( $fields, $product, $order ) { | |
unset( $fields['sku'] ); | |
return $fields; | |
} | |
/** https://wordpress.org/support/topic/remove-sku-from-invoice/ **/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment