Viewing 1 replies (of 1 total)
  • in version 4.1 you cane rename all titels to your needs. there are 3 hooks for that:

    wcdn_template_registration_invoice
    wcdn_template_registration_delivery_note
    wcdn_template_registration_receipt

    an example that renames the delivery note to packing slip. place it in your functions.php:

    function example_rename_delivery_note_name( $registration ) {
    	$registration['labels']['name'] = __( 'Packing Slip' );
    	$registration['labels']['name_plural'] = __( 'Packing Slips' );
    	$registration['labels']['print'] = __( 'Print Packing Slip' );
    	$registration['labels']['print_plural'] = __( 'Print Packing Slips' );
    	$registration['labels']['message'] = __( 'Packing Slip created.' );
    	$registration['labels']['message_plural'] = __( 'Packing Slips created.' );
    	$registration['labels']['setting'] = __( 'Enable Packing Slips' );
    
    	return $registration;
    }
    add_filter( 'wcdn_template_registration_delivery_note', 'example_rename_delivery_note_name' );
Viewing 1 replies (of 1 total)

The topic ‘Add custom print type’ is closed to new replies.