Hi Gabor,
Yes, you can show your custom text on print invoice, instead shipping address.
Please add the below code to your active theme’s functions.php file or use a plugin like Code Snippets:
function custom_modify_shipping_address( $formatted_shipping_address, $order ) {
$chosen_shipping_methods = $order->get_shipping_methods();
foreach ( $chosen_shipping_methods as $chosen_shipping_method ) {
if ( strpos( $chosen_shipping_method, 'local_pickup' ) !== false ) {
return 'Add your custom note'; // add your custome note here.
}
}
return $formatted_shipping_address;
}
add_filter( 'wcdn_address_shipping', 'custom_modify_shipping_address', 10, 2 );
Please let us know if you need any other help.
Regards, Nikhil.