Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'woocommerce_order_item_get_formatted_meta_data', function( $formatted_meta ) {
- if( !empty( $formatted_meta ) ) {
- foreach( $formatted_meta as $meta_id => $meta ) {
- if( isset( $meta->key ) && in_array( $meta->key, array( 'wcfm_tracking_code', 'wcfm_tracking_url' ) ) ) {
- unset( $formatted_meta[$meta_id] );
- }
- }
- }
- return $formatted_meta;
- }, 51 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement