Created
July 16, 2018 19:33
-
-
Save grantalltodavid/27722e585c90c7a607e01189f3451f14 to your computer and use it in GitHub Desktop.
Woo Invoices - how to filter order item metas
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( 'sliced_woocommerce_order_item_metas', 'woo_invoices_custom_meta_filter' ); | |
function woo_invoices_custom_meta_filter( $item_metas ) { | |
unset( $item_metas['_gravity_forms_history'] ); | |
return $item_metas; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment