Add functions
-
Hi,
I want to add some extra things in my own template, can I create my own functions like you did in woocommerce-pdf-invoices-packingslips.php? For example:
/** * Return/Show shipping address */ public function get_shipping_address() { $address = $this->export->order->get_formatted_shipping_address(); if( !$address ) { $address = __('N/A', 'wpo_wcpdf'); } return apply_filters( 'wpo_wcpdf_shipping_address', $address ); } public function shipping_address() { echo $this->get_shipping_address(); }
https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Add functions’ is closed to new replies.