How to remove fields in Driver Report

To check list of your meta_keys go to WPCargo > Manage Form Fields

Note: Copy and paste this code into functions.php of your current theme.

add_filter( 'wpcpod_report_headers', 'custom_wpcpod_report_headers' );
function custom_wpcpod_report_headers( $fields ){
	// Put your meta_key you want to remove
	unset($fields['wpcargo_receiver_name']);
	unset($fields['wpcargo_shipper_name']);
	unset($fields['wpcargo_expected_time']);
	unset($fields['wpcargo_shipper_address']);
	unset($fields['wpcargo_shipper_phone']);
	unset($fields['wpcargo_receiver_phone']);
	return $fields;
}
0
    0
    Your Cart
    Your cart is emptyReturn to Shop