Skip to content

Instantly share code, notes, and snippets.

@bradleysa
Created April 22, 2022 08:03
Show Gist options
  • Save bradleysa/43c49d76e501de96916e84417fbd4912 to your computer and use it in GitHub Desktop.
Save bradleysa/43c49d76e501de96916e84417fbd4912 to your computer and use it in GitHub Desktop.
Print Invoice: Remove SKU
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