Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    Try this snippet

    
    /**
     * Change Totals label
     */
    add_filter( 'wpo_wcpdf_woocommerce_totals', function( $totals, $order, $document_type ) {
    	if( ! empty( $order ) && $document_type == 'invoice' ) {
    		$label = 'New title'; //your title here
    		$totals['order_total']['label'] = __( $label, 'woocommerce-pdf-invoices-packing-slips');
    	}
    	return $totals;
    }, 10, 3 );
    Thread Starter armancse

    (@armancse)

    Hi,

    Great its working fine.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change PDF Invoice text Total to any other’ is closed to new replies.