Thanks for sharing that screenshot, @holisticmissions:
Please try this code snippet:
/**
* PDF Invoices & Packing Slips for WooCommerce:
* Unset specific item meta data from PDF documents
*/
add_filter( 'wpo_wcpdf_html_filters', function( $filters ) {
$filters[] = array( 'woocommerce_order_item_get_formatted_meta_data', 'wpo_remove_specific_item_meta_from_pdf_documents', 999, 2 );
return $filters;
} );
function wpo_remove_specific_item_meta_from_pdf_documents( $formatted_meta, $item ){
foreach( $formatted_meta as $key => $meta ){
if( in_array( $meta->key, array( 'Backordered', 'ETA' ) ) ) {
unset( $formatted_meta[$key] );
}
}
return $formatted_meta;
}
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use code snippets