---
title: Add shipping method to prints
description: "``` function sl_cc_printus_extra_template_data_070324($extra, $order, $template_name){ return $extra . 'Shipping method: ' . $order->get_shipping_method(); } add_filter('printus_template__extra_data', 'sl_cc_printus_extra_template_data_070324', 12, 3); ``` The `printus_template__extra_data` filter can be used to add other custom data to the prints."
url: "https://printus.cloud/docs/how-to-add-shipping-method-to-prints/"
updated: "2024-03-07"
category: Custom Code Samples
---

# Add shipping method to prints

```
function sl_cc_printus_extra_template_data_070324($extra, $order, $template_name){

return $extra . '<br/><strong>Shipping method:</strong> ' . $order->get_shipping_method();

}
add_filter('printus_template__extra_data', 'sl_cc_printus_extra_template_data_070324', 12, 3);
```

The `printus_template__extra_data` filter can be used to add other custom data to the prints.
