How to print selected copy of waybill

Put only the copies you want to print

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

/*
 * In default there are 3 copies.
 * $copies = array(
        'account-copy' => 'Accounts Copy',
        'consignee-copy' => 'Consignee Copy',
        'shippers-copy' => 'Shippers Copy',
    );
 */

add_filter( 'wpcargo_print_label_template_copies', 'wpcargo_print_label_template_copies_callback', 10, 1 );
function wpcargo_print_label_template_copies_callback( $copies ){
	$copies = array(
		'consignee-copy' => 'Consignee Copy',
	);
	return $copies;
}
0
    0
    Your Cart
    Your cart is emptyReturn to Shop