Forum_Admin
So I need to use an action hook to implement the product location in my packing list pdf
this is an example of such a hook:
add_action( 'wpo_wcpdf_after_item_meta', 'wpo_wcpdf_show_product_categories', 10, 3 );
function wpo_wcpdf_show_product_categories ( $template_type, $item, $order ) {
// get a comma separated list of categories (category links stripped)
if (isset($item['product'])) {
if (function_exists('wc_get_product_category_list')) {
// WC3.0+
$category_list = wc_get_product_category_list( $item['product']->get_id() );
} else {
$category_list = $item['product']->get_categories();
}
echo '<div class="product-categories">Categories: '.strip_tags( $category_list ).'</div>';
}
}
--
How would I implement the atum_location in this?